What problem does it solve?
Secret scanning helps you detect leaked credentials in your codebase, prevent future secret pushes with push protection, and guide safe remediation so you can reduce account compromise risk.
Core Features & Use Cases
- Enable & configure GitHub Secret Scanning: Turn on secret scanning and its related security controls in repository or organization settings.
- Activate push protection: Block secrets during command-line, UI, uploads, and REST API content creation flows.
- Manage alerts and remediation: Triage user/push-protection/partner alerts, understand validity checks, dismiss appropriately, rotate credentials, and decide whether to rewrite Git history.
- Create custom patterns: Define regex-based secret formats (including Copilot-assisted regex generation) and optionally enable push protection for low-false-positive patterns.
- Resolve blocked pushes & bypass workflows: Remove the secret from commits or use bypass/delegated bypass flows with the correct reasons and timing.
Quick Start
Use the secret-scanning skill to walk through enabling Secret Protection and Push Protection, then define any required exclusions in .github/secret_scanning.yml for safe, low-noise coverage.