talira

GitHub Secret Protection

Secret scanning and push protection for private repositories, per active committer

SaaSself-hostablefree

GitHub Secret Protection is GitHub's paid secret scanning for private and internal repositories: it scans the whole git history on every branch, plus issues, pull requests, discussions and wikis, for provider tokens, generic secrets (found partly with AI) and your own custom patterns, and push protection blocks a commit that contains a secret before it reaches the repository. Validity checks say whether a found secret still works, delegated bypass sends a blocked push to reviewers, and Enterprise adds monitoring for your secrets leaked anywhere on public GitHub. It was split out of GitHub Advanced Security on 1 April 2025, when it also became available to GitHub Team, at US$19 per active committer a month; secret scanning and push protection stay free for public repositories. It runs on GitHub and on GitHub Enterprise Server.

Problems it solves

  • block a developer's push when it contains an API key, before the key lands in our private repo
  • scan years of history across all our private GitHub repos for committed credentials
  • know which leaked tokens in our repos are still active so we rotate those first
  • make anyone who wants to push a secret anyway get approval from the security team
  • find credentials pasted into GitHub issues and pull request comments, not only code
  • detect our company's own internal token formats with custom patterns
  • find out when one of our secrets shows up in someone else's public GitHub repository
  • secret scanning for private repos without buying the whole GitHub Advanced Security bundle

Features

  • secret scanning of git history on all branches, issues, pull requests, discussions and wikis
  • push protection that blocks commits containing secrets
  • provider patterns with provider notification
  • generic patterns and AI-detected secrets
  • custom patterns
  • validity and metadata checks
  • delegated bypass and alert dismissal controls
  • insights in security overview and a scan history API
  • public monitoring of leaks on public GitHub (Enterprise)
  • free secret risk assessment for an organization
View 1 more
  • available on GitHub Team, Enterprise Cloud and Enterprise Server

Limitations

  • Doesn't scan private repositories owned by personal accounts: only organization-owned private and internal repositories, or user-owned ones on Enterprise Cloud with Enterprise Managed Users1

Ways to run it

GitHub Secret Protection on GitHub.com

Hosted by GitHub

US$19 per active committer/month (GitHub Team or Enterprise Cloud)12

Only in this edition

  • public monitoring (Enterprise)

Pricing

GitHub Secret Protection on GitHub Enterprise Server

You run it, under a commercial licence

Price not published1

You arrange

  • a GitHub Enterprise Server instance

Self-hosting docs

Capabilities

Has an APIplan not known
Sends webhooksplan not known

Alternatives

The same job

These do what GitHub Secret Protection does.

  1. GitGuardian Detect and validate hardcoded secrets across your SDLC
  2. TruffleHog Find, verify, and analyze leaked credentials
  3. Gitleaks Find secrets with Gitleaks
  4. detect-secrets An enterprise friendly way of detecting and preventing secrets in code.
  5. Kingfisher Detect secrets. Validate them live. Map blast radius. Revoke fast.

Compare GitHub Secret Protection with the top 3