GitHub
docs.github.com › code-security › secret-scanning › about-secret-scanning
About secret scanning - GitHub Docs
Secret scanning scans your entire Git history on all branches of your repository for hardcoded credentials, including API keys, passwords, tokens, and other known secret types. This helps you identify secret sprawl, the uncontrolled proliferation ...
Home
Get started, troubleshoot, and make the most of GitHub. Documentation for new users, developers, administrators, and all of GitHub's products.
Security and code quality
Learn about the CodeQL queries that code scanning uses to analyze code. ... Learn how bypass requests work when push protection blocks commits containing secrets.
GitHub Code Quality
Use GitHub Code Quality to flag code quality issues in pull requests and repository scans, apply Copilot-powered autofixes, and enforce standards with rulesets.
GitHub security features
When GitHub detects a leaked secret in a public repository, or a public npm packages, GitHub informs the relevant service provider that the secret may be compromised. For details of the supported secrets and service providers, see Supported secret scanning patterns.
GitHub
docs.github.com › en › code-security › how-tos › secure-your-secrets › detect-secret-leaks › enabling-secret-scanning-for-your-repository
Enabling secret scanning for your repository - GitHub Docs
Secret scanning alerts for users are enabled when you enable Secret Protection for your repository. On GitHub, navigate to the main page of the repository.
Videos
04:57
GitHub Secret Scanning: Configure Your Push Protection Patterns ...
47:55
GitHub Secret Scanning - Deep Dive - YouTube
How GitHub secret scanning saves your code
01:25
Overview of GitHub Secret Scanning - YouTube
12:24
Configure and use secret scanning in your GitHub repository | GH-500 ...
02:07
GitHub: Enabling and Disabling Secret Scanning - YouTube
How can I set up secret scanning and code scanning in my GitHub repository?
Enable the respective security features in the repository settings. Detailed instructions and best practices are available in GitHub's documentation.
github.com
github.com › articles › what is secret scanning?
What is secret scanning? · GitHub
What is secret scanning?
Secret scanning is a security feature that automatically scans code repositories for exposed secrets, which helps prevent unauthorized access and potential security breaches.
github.com
github.com › articles › what is secret scanning?
What is secret scanning? · GitHub
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.
github.com
github.com › security › advanced-security › secret-protection
GitHub Secret Protection · GitHub
GitHub
docs.github.com › en › code-security › reference › secret-security › supported-secret-scanning-patterns
Supported secret scanning patterns - GitHub Docs
Lists of supported secrets and the partners that GitHub works with to prevent fraudulent use of secrets that were committed accidentally. Secret scanning is available for the following repository types:
GitHub
github.com › grab › secret-scanner
GitHub - grab/secret-scanner · GitHub
You can scan multiple repositories from the same Git provider by providing multiple identifiers separated by commas. ./secret-scanner -repos jquery/jquery,lodash/lodash
Starred by 54 users
Forked by 12 users
Languages Go
GitHub
github.com › articles › what is secret scanning?
What is secret scanning? · GitHub
November 17, 2025 - Secret scanning is a security process that detects exposed credentials, API keys, and sensitive data in code, logs, and repositories to prevent unauthorized access..
GitHub
github.com › security › advanced-security › secret-protection
GitHub Secret Protection · GitHub
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.
GitHub
docs.github.com › en › rest › secret-scanning › secret-scanning
REST API endpoints for secret scanning - GitHub Docs
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/repos/OWNER/REPO/secret-scanning/alerts/ALERT_NUMBER ... { "number": 42, "created_at": "2020-11-06T18:18:30Z", "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42", "html_url": "https://github.com/owner/private-repo/security/secret-scanning/42", "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42/locations", "state": "open", "resolution": null, "resolved_at": null, "res
Jit
jit.io › resources › appsec-tools › git-secrets-scanners-key-features-and-top-tools-
Top 8 Git Secrets Scanners in 2026 | Jit
June 9, 2025 - With the right git secrets scanner, you can proactively prevent exposed secrets from getting into the wrong hands. Pattern-Based & ML Detection Combines high-precision regexes for well-known credential formats—such as AWS Access Key IDs (AKIA…) or GitHub Personal Access Tokens (ghp_…)—with machine-learning and NLP models that analyze entropy, structure, and contextual cues.
GitHub
docs.github.com › en › code-security › how-tos › secure-your-secrets
How-tos for securing secrets - GitHub Docs
Learn how to use GitHub's tools to detect secret leaks.
GitHub
docs.github.com › en › code-security › how-tos › secure-your-secrets › detect-secret-leaks
How-tos for detecting secret leaks - GitHub Docs
You can enable secret scanning to detect additional potential secrets at the repository and organization levels.
GitHub
docs.github.com › code-security › secret-scanning › secret-scanning-partnership-program › secret-scanning-partner-program
Secret scanning partner program - GitHub Docs
GitHub scans repositories for known secret formats to prevent fraudulent use of credentials that were committed accidentally. Secret scanning happens by default on public repositories and public npm packages.
Kluster
kluster.ai › blog › github-secret-scanning
A Guide to GitHub Secret Scanning
November 25, 2025 - They give GitHub the unique formats—the "fingerprints"—for those secrets. This partnership lets GitHub scan code with incredible precision, telling the difference between a real AWS key and a random string that just happens to look similar.