Skip to main content

This version of GitHub Enterprise Server will be discontinued on 2026-03-17. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.

How-tos for detecting secret leaks

Learn how to use GitHub's tools to detect secret leaks.

Enabling secret scanning for your repository

You can configure how GitHub scans your repositories for leaked secrets and generates alerts.

Enabling secret scanning for non-provider patterns

You can enable secret scanning to detect additional potential secrets at the repository level.