GitHub Secret Scanning Push Protection free tier and limits

Blocks git pushes that contain recognized secrets (API keys, tokens, private keys) before they land in your repository.

What the free plan gives you

  • 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.

Fix guides that use GitHub Secret Scanning Push Protection