GitHub Secret Scanning Push Protection
Blocks git pushes that contain recognized secrets (API keys, tokens, private keys) before they land in your repository.
Free tier
- Push protection for users is on by default for every GitHub.com account
- Stops you from pushing supported secrets to public repositories
Best for
Everyone. AI tools often paste keys straight into code.
Watch out: The default user-level protection covers public repos only. Repository-level push protection requires GitHub Secret Protection to be enabled.
Related fix guides
Sources
Checked on 2026-11-11. Vendors change pricing often, so confirm on the official page before you commit.