Skip to main content

Concepts for secret security

Learn core concepts for GitHub's secret security features.

About secret scanning

GitHub scans repositories for known types of secrets, to prevent fraudulent use of secrets that were committed accidentally.

About push protection

Push protection blocks contributors from pushing secrets to a repository and generates an alert whenever a contributor bypasses the block. Push protection can be applied at the repository, organization, and user account level.

About secret security with GitHub

Learn how GitHub's security tools can help you identify, remediate, and prevent secret leaks.

About secret scanning alerts

Learn about the different types of secret scanning alerts.

About delegated bypass for push protection

You can control which teams or roles have the ability to bypass push protection in your organization or repository.

About secret scanning for partners

When secret scanning detects authentication details for a service provider in a public repository on GitHub, an alert is sent directly to the provider. This allows service providers who are GitHub partners to promptly take action to secure their systems.

Working with push protection and the GitHub MCP server

Learn how you are protected from leaking secrets during interactions with the GitHub MCP server, and how to bypass a push protection block if you need to.

Working with push protection from the REST API

Learn your options for unblocking your push to GitHub using the REST API if secret scanning detects a secret in the content of your API request.