|
| 1 | +# Saagar portfolio — gitleaks baseline |
| 2 | +# Generated 2026-06-07 from full-history audit (gitleaks 8.30.1, 93 repos). |
| 3 | +# All 25 findings were confirmed false-positives: test fixtures, mock API files, |
| 4 | +# build artifacts, doc curl examples, and audit-output project_key strings. |
| 5 | +# |
| 6 | +# Drop this in at a repo root as `.gitleaks.toml` to silence those FP classes. |
| 7 | +# It EXTENDS the default ruleset (real secrets outside these paths still fire). |
| 8 | +# |
| 9 | +# TRADE-OFF: this allowlists whole path CLASSES (tests/, mocks, build dirs, docs). |
| 10 | +# A real secret committed *inside* a test file would also be suppressed. For these |
| 11 | +# repos that's an accepted trade; if you want stricter, pin by commit instead |
| 12 | +# (see the commented [[rules]]-free allowlist.commits example at the bottom). |
| 13 | + |
| 14 | +title = "Saagar portfolio gitleaks baseline (2026-06-07 audit)" |
| 15 | + |
| 16 | +[extend] |
| 17 | +useDefault = true |
| 18 | + |
| 19 | +[allowlist] |
| 20 | +description = "Audited false-positives: test fixtures, mocks, build artifacts, docs, audit output" |
| 21 | +paths = [ |
| 22 | + # test suites (GHRA, mcpforge, AssistSupport, IncidentWorkbench, Notion) |
| 23 | + '''(^|/)tests?/''', |
| 24 | + '''.*\.test\.(ts|tsx|js|jsx|py|rs)$''', |
| 25 | + '''(^|/)test_[^/]*\.py$''', |
| 26 | + '''.*_test\.(go|py|rs)$''', |
| 27 | + # mock / fixture API files (DevToolsTranslator src/api/mock.ts) |
| 28 | + '''(^|/)mocks?\.(ts|tsx|js|jsx)$''', |
| 29 | + '''(^|/)__mocks__/''', |
| 30 | + '''(^|/)fixtures?/''', |
| 31 | + # build / generated artifacts (NeuralNetwork .next, DevToolsTranslator .vite-dist) |
| 32 | + '''(^|/)\.next/''', |
| 33 | + '''(^|/)\.vite-dist/''', |
| 34 | + '''(^|/)dist/''', |
| 35 | + '''(^|/)build/''', |
| 36 | + '''(^|/)out/''', |
| 37 | + # auditor output JSON (GithubRepoAuditor output/*.json — project_key strings) |
| 38 | + '''(^|/)output/.*\.json$''', |
| 39 | + # documentation curl examples (IncidentWorkbench README/QUICKSTART) |
| 40 | + '''(^|/)(README|QUICKSTART|CHANGELOG|CONTRIBUTING|DOCS?)\.(md|mdx)$''', |
| 41 | + '''(^|/)docs?/''', |
| 42 | + # web/extension manifests (APIReverse extension/chrome/manifest.json — public key) |
| 43 | + '''(^|/)manifest\.json$''', |
| 44 | +] |
| 45 | + |
| 46 | +# Optional stricter alternative — comment out `paths` above and pin the exact |
| 47 | +# audited commits instead (precise, but brittle as history rewrites): |
| 48 | +# commits = [ |
| 49 | +# "93f3bde46a", "40655ccd64", "c73a115e77", "0d4917e899", "e68e7190b9", |
| 50 | +# "2af50ef5de", "2d8a1b8653", "8ba9437be9", "059b951e81", "da395afc8b", |
| 51 | +# "36e4235a39", "567b269726", "ed1ed23342", "1c58b56da8", "f54dd92b5a", |
| 52 | +# ] |
0 commit comments