Working with secret scanning and push protection
Avoid leaking sensitive data by blocking pushes containing tokens and other secrets.
Remediating a leaked secret in your repository
Learn how to respond effectively to a leaked secret in your GitHub repository.
Push protection for users
With push protection for users, you are automatically protected on all pushes to public repositories across GitHub.
Working with push protection from the command line
Learn your options for unblocking your push from the command line to GitHub if secret scanning detects a secret in your changes.
Working with push protection in the GitHub UI
Learn your options for unblocking your commit when secret scanning detects a secret in your changes.