{
 "schema_version": 1,
 "generated": "2026-11-09",
 "repo": "Yelp/detect-secrets",
 "name": "detect-secrets",
 "owner": "Yelp",
 "slug": "yelp-detect-secrets",
 "github": "https://github.com/Yelp/detect-secrets",
 "what": "detect-secrets finds secrets such as API keys, tokens and private keys in a code base. It records the secrets already present in a baseline file, blocks new ones with a pre-commit hook that scans only changed files, lets you audit and label findings, and offers plugins and filters to tune signal to noise.",
 "why": "4.7k stars, talked about in 2 AI sources we track",
 "language": "",
 "requirements": [
  "Python with pip (`pip install detect-secrets`) or Homebrew (`brew install detect-secrets`)",
  "A git repository to scan",
  "Optional: the pre-commit framework for the hook"
 ],
 "audience_note": "Engineering and security teams who want to stop new credentials landing in git without first cleaning every old one.",
 "risk": "none",
 "section": "earlier",
 "weekly_rank": null,
 "category": "Security and science",
 "url": "https://dedupedai.com/use-cases/yelp-detect-secrets/",
 "use_case_count": 3,
 "use_cases": [
  {
   "id": "yelp-detect-secrets--create-a-secrets-baseline-with-detect-secrets",
   "title": "Create a baseline of secrets already in your repo",
   "best": true,
   "url": "https://dedupedai.com/use-cases/yelp-detect-secrets/create-a-secrets-baseline-with-detect-secrets/",
   "json": "https://dedupedai.com/use-cases/u/yelp-detect-secrets/create-a-secrets-baseline-with-detect-secrets.json"
  },
  {
   "id": "yelp-detect-secrets--block-new-secrets-with-detect-secrets-pre-commit",
   "title": "Block new secrets at commit time",
   "best": false,
   "url": "https://dedupedai.com/use-cases/yelp-detect-secrets/block-new-secrets-with-detect-secrets-pre-commit/",
   "json": "https://dedupedai.com/use-cases/u/yelp-detect-secrets/block-new-secrets-with-detect-secrets-pre-commit.json"
  },
  {
   "id": "yelp-detect-secrets--audit-and-tune-secret-findings-with-detect-secrets",
   "title": "Audit findings and cut false positives",
   "best": false,
   "url": "https://dedupedai.com/use-cases/yelp-detect-secrets/audit-and-tune-secret-findings-with-detect-secrets/",
   "json": "https://dedupedai.com/use-cases/u/yelp-detect-secrets/audit-and-tune-secret-findings-with-detect-secrets.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."
}
