Skip to content
Cobalt Rentals

GitHub Secret Protection

GitHub Secret Protection continuously monitors your GitHub perimeter, helping prevent exposures, protect credentials, and ship securely.

What is GitHub Secret Protection?

What is GitHub Secret Protection?

  • 1B+ Developer pushes scanned with push protection in 2025
  • 150+ Industry partners, working together to mitigate risk for the developer community
  • 91M Repositories protected with secret scanning in 2025

Key capabilities

Block leaks before they happen

Push protection automatically blocks secrets before they reach your repository, keeping code clean without disrupting workflows.

![The image shows a terminal window with a command and error message related to GitHub. The command entered is "git push" for the project located at "~/my_project" on the branch "branch_name". The error message displayed is "remote: error GH009: Secrets detected! This push failed." followed by "remote: GITHUB PUSH PROTECTION" and "remote: Resolve the following secrets before pushing again".](//images.ctfassets.net/8aevphvgewt8/twoM211GOkSUd3mMpFES1/7c39594202f680d97a94278b3a37f3af/1_Block-leaks_GitHub_ _2_.webp?fm=webp)

Find the threats that others miss

Detect secrets in pull requests, issues, and more, even in public repos outside your enterprise. Enriched metadata like validity checks help prioritize active threats.

![The image shows a notification box with the title "Publicly leaked active secret" in red text, followed by a string of characters and two file paths. It highlights the exposure of sensitive information, specifically an active secret key and its associated file paths.](//images.ctfassets.net/8aevphvgewt8/5NMPONnPHjTGt5Gy5ORscI/e95bdbb849eca6a060eeb6813256a599/2_Find-threats_GitHub_ _2_.webp?fm=webp)

Broaden coverage with AI-detection

GitHub's purpose-built AI model finds elusive secrets like passwords with surrounding code context. It's precise, fast, and trustworthy enough to run in push protection—adding another layer of protection for your enterprise.

![GitHub secret scanning uses AI to flag a likely secret in code and prompts the developer to remove it before committing.](//images.ctfassets.net/8aevphvgewt8/1Q32AEJxWF1YWS2UbWQI6m/31bb5be8fea5968447f570c7043765a8/3_AI-detection_GitHub_ _1_.webp?fm=webp)

One-click risk assessment

Evaluate exposure to application vulnerabilities and leaked secrets in your codebase with our free risk assessment tool.

Explore GitHub security risk assessments

![Modal with 2 checkboxes for secret protection and code security with cancel and continue buttons](//images.ctfassets.net/8aevphvgewt8/1U8Fb2hGT94hKu9gGxEA9A/1184737c3066d999618411c12b8a83e9/4_Risk-assessment_Github_ _1_.webp?fm=webp)

Partner integrations

GitHub partners with 150+ providers to mitigate risks and ensure the highest level of detection accuracy.

Learn about the secret scanning partner program

The image features six logos of prominent technology companies arranged in a 2x3 grid on a blue gradient background. The top row includes the logos for Microsoft Azure, Amazon Web Services (AWS), and Google Cloud. The bottom row includes the logos for Slack, Meta (formerly Facebook), and OpenAI.

Resources

Discover developer-first application security — Take an in-depth look at the current state of application security. View the webinar

Explore the DevSecOps guide — Learn how to build security into your code from day one with DevSecOps. Read the whitepaper

Avoid AppSec pitfalls — Explore common application security pitfalls and how to avoid them. Read the whitepaper

Frequently Asked Questions

  • What is GitHub Secret Protection?: GitHub Secret Protection detects and prevents secret leaks continuously in real-time, proactively blocking sensitive credentials from being pushed to a repository with push protection. With a remarkably low false positive rate and approximately 150 service provider integrations, it enables rapid credential revocation and rotation, enhancing developer productivity.
  • What is the secret risk assessment?: The secret risk assessment provides a free, comprehensive overview of an organization's secret leak footprint across its GitHub repositories. By analyzing repositories for exposed secrets, it helps admins and developers understand their exposure to potential security risks and offers actionable insights for remediation.
  • What is push protection?: Push protection is designed to prevent sensitive information, such as secrets or tokens, from being pushed to your repository in the first place. It proactively scans your code for secrets during the push process and blocks the push if any are detected.
  • What is delegated bypass for push protection?: Delegated bypass introduces an approval process for developers to bypass push protection. Anyone opting to bypass a push protection block will need to submit a request to a designated group of reviewers, ensuring any risky secrets are not accidentally leaked.
  • What are secret scanning validity checks?: Validity checks help you determine whether detected secrets are still active, enabling developers and security teams to prioritize their response effectively. When a secret is flagged, the system verifies its validity to confirm whether the secret is active or inactive.
  • What is the secret scanning partnership program?: The secret scanning partnership program allows service providers to secure their token formats by enabling GitHub to scan public repositories and npm packages for exposed secrets. When a secret is found in a public repo, GitHub sends an alert directly to the service provider, who can then validate and take appropriate action.
  • How does secret scanning detect secrets?: GitHub secret scanning detects provider, generic, and custom organization-defined secret types. Provider secrets are tied to a specific secret issuer from GitHub's secret scanning partnership program. Generic secrets aren't tied to a specific provider and use both traditional regex and AI-based methods. AI-detected secrets use a purpose-built, fine-tuned model to detect secrets without a recognizable format, optimized for recall and precision.
  • What is public monitoring?: Public monitoring extends visibility beyond the repositories you control by identifying secrets leaked anywhere across public GitHub and attributing them back to your enterprise using GitHub-specific signals such as enterprise membership and verified domains.