Commit 8026496
security: remove .gitleaksbaseline + secrets-audit + simplify secret-scan
These files were a security liability: even though Secret/Match fields
were redacted, they still mapped attackers to exactly which files,
commits, authors, and line numbers historically contained credentials.
An external contributor cloning the repo could read them and know where
to look in git history for extractable keys.
Removed:
.gitleaksbaseline (JSON: 49 findings, commit SHAs, file paths)
docs/secrets-audit.md (human-readable table — even more exploitable)
docs/starter-apps.md (not security-sensitive, but low-value + drifts
fast; the 5 starter repos are discoverable on
the org page, and release.yml already clones
them at runtime for consumer validation)
Simplified .github/workflows/secret-scan.yml:
- No longer uses --baseline-path (redundant with incremental scans)
- Scans only the commit range introduced by the event:
PR: base.sha..HEAD
push: before..HEAD
new branch: HEAD~1..HEAD (fallback for zero before-SHA)
- Historical secrets from before the range are naturally ignored
because they're outside it — no committed-in-repo list needed.
If a secret is actually leaked in a future commit, gitleaks will catch
it. Historical leaks are audited once (internally, off-repo) and the
relevant keys rotated; keeping an on-repo map of them was protecting
nothing and advertising everything.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6e4dc13 commit 8026496
4 files changed
Lines changed: 27 additions & 1156 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | | - | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
| 57 | + | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
| 62 | + | |
52 | 63 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | | - | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
0 commit comments