Secret security with GitHub

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

Hardcoded credentials in your repositories can lead to credential leaks, unauthorized access, data breaches, and significant costs to your organization. For details about these risks and how to protect against them, see Secret leakage risks.

GitHub provides tools to help you understand and address your organization's exposure to leaked secrets:

Secret risk assessment

The secret risk assessment provides organization owners and security managers with a free point-in-time scan of their organization's repositories to identify hardcoded credentials like API keys, tokens, and passwords, and understand the extent of secret sprawl across your organization.

Run a security risk assessment

What the assessment shows

The assessment report includes:

Why assess your risk

Regular assessment helps prevent:

GitHub Secret Protection

GitHub Secret Protection is a GitHub Advanced Security product containing a suite of features designed to prevent, detect, and assist in remediating secret leaks in your organization.

While the secret risk assessment provides a point-in-time view of your organization's current secret exposure, GitHub Secret Protection:

Through these features, GitHub Secret Protection provides complete coverage for your organization, reducing the risk of costly credential leaks, secret sprawl, and high-effort remediation.

For more information about the specific features of GitHub Secret Protection, see GitHub security features.

Next steps

Now that you know how GitHub can help keep your secrets safe, you should assess your organization's current exposure to leaked secrets. See Running the secret risk assessment for your organization.