{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "gitleaks-gitleaks--adopt-gitleaks-on-a-noisy-repo-with-a-baseline",
 "repo": "gitleaks/gitleaks",
 "repo_url": "https://github.com/gitleaks/gitleaks",
 "repo_slug": "gitleaks-gitleaks",
 "title": "Adopt secret scanning on an old repo without the noise",
 "page_title": "How to adopt secret scanning on an old repo without the noise with Gitleaks",
 "summary": "Save current findings as a baseline so later scans only report new secrets.",
 "who": "A security engineer rolling out scanning on a large repo with years of known findings.",
 "problem": "Hundreds of old findings make a new scanner useless because nobody can see the new ones.",
 "outcome": "Scan reports that contain only issues introduced after the baseline.",
 "steps": [
  "Create a baseline report with `gitleaks git --report-path gitleaks-report.json`",
  "Triage the baseline once and rotate anything real",
  "Run later scans with `gitleaks git --baseline-path gitleaks-report.json --report-path findings.json`",
  "Tune rules in a custom .gitleaks.toml that extends the default config with useDefault",
  "Choose a report format such as sarif or junit with --report-format to feed your CI"
 ],
 "agent_prompt": "For <repo>, create a gitleaks/gitleaks baseline report, then add a CI step that runs gitleaks with --baseline-path so only new findings fail the build, writing SARIF output. Add a .gitleaks.toml that extends the default config.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "A baseline hides old findings; it does not make them safe, so rotate real secrets before you baseline them.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/gitleaks-gitleaks/adopt-gitleaks-on-a-noisy-repo-with-a-baseline/",
 "md": "https://dedupedai.com/use-cases/gitleaks-gitleaks/adopt-gitleaks-on-a-noisy-repo-with-a-baseline/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/gitleaks-gitleaks--adopt-gitleaks-on-a-noisy-repo-with-a-baseline.json",
 "api_version": "v1"
}
