Working with secret scanning and push protection
Secret scanning scans for and detects secrets that have been checked into a repository. Push protection proactively secures you against leaking secrets by blocking pushes containing secrets.
Who can use this feature?
Secret scanning is available for the following repositories:
- Organization-owned repositories with GitHub Advanced Security enabled
- for an enterprise with GitHub Advanced Security enabled
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.