{
 "schema_version": 1,
 "generated": "2026-11-09",
 "repo": "gitleaks/gitleaks",
 "name": "gitleaks",
 "owner": "gitleaks",
 "slug": "gitleaks-gitleaks",
 "github": "https://github.com/gitleaks/gitleaks",
 "what": "Gitleaks detects hardcoded secrets such as passwords, API keys and tokens in git history, directories and files, or anything piped to stdin. It runs as a CLI, a Docker image, a pre-commit hook or a GitHub Action, supports baselines so only new findings are reported, custom TOML rules, redaction and JSON, CSV, JUnit and SARIF reports. The maintainer has declared it feature complete, with future releases limited to security patches.",
 "why": "31k stars, talked about in 2 AI sources we track",
 "language": "Go",
 "requirements": [
  "Homebrew, Docker, Go to build from source, or a release binary",
  "pre-commit if you want the hook",
  "Read access to the repos or folders you scan"
 ],
 "audience_note": "Developers and security teams who want to catch leaked credentials before they reach a shared repo.",
 "risk": "none",
 "section": "earlier",
 "weekly_rank": null,
 "category": "Security and science",
 "url": "https://dedupedai.com/use-cases/gitleaks-gitleaks/",
 "use_case_count": 3,
 "use_cases": [
  {
   "id": "gitleaks-gitleaks--scan-a-repo-history-for-leaked-secrets",
   "title": "Scan a repo's full history for leaked secrets",
   "best": true,
   "url": "https://dedupedai.com/use-cases/gitleaks-gitleaks/scan-a-repo-history-for-leaked-secrets/",
   "json": "https://dedupedai.com/use-cases/u/gitleaks-gitleaks/scan-a-repo-history-for-leaked-secrets.json"
  },
  {
   "id": "gitleaks-gitleaks--block-secrets-with-a-pre-commit-hook",
   "title": "Stop secrets before they are committed",
   "best": false,
   "url": "https://dedupedai.com/use-cases/gitleaks-gitleaks/block-secrets-with-a-pre-commit-hook/",
   "json": "https://dedupedai.com/use-cases/u/gitleaks-gitleaks/block-secrets-with-a-pre-commit-hook.json"
  },
  {
   "id": "gitleaks-gitleaks--adopt-gitleaks-on-a-noisy-repo-with-a-baseline",
   "title": "Adopt secret scanning on an old repo without the noise",
   "best": false,
   "url": "https://dedupedai.com/use-cases/gitleaks-gitleaks/adopt-gitleaks-on-a-noisy-repo-with-a-baseline/",
   "json": "https://dedupedai.com/use-cases/u/gitleaks-gitleaks/adopt-gitleaks-on-a-noisy-repo-with-a-baseline.json"
  }
 ],
 "disclaimer": "Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk."
}
