Commit 3208fea
committed
docs(ci): clarify why secrets-scan uses caching despite being security-critical
Expand comment on secrets-scan cache check to explain why caching is both
safe and valuable for security-critical jobs.
Key insights:
1. Cache improves retry efficiency - don't re-scan on workflow re-run
2. Content-addressed security - commit SHA cryptographically guarantees
same content, therefore same security posture
3. Deterministic scanning - gitleaks produces identical results for
identical repository content
4. Override available - force_run=true for paranoid manual re-scans
The cache WILL skip when:
- Workflow retries after partial failure (common scenario)
- Manual re-trigger on same commit SHA
- Multiple runs on same commit
The cache WON'T skip when:
- New commits (different SHA = different content)
- First run on a commit (no cache entry)
- force_run=true override
This pattern is established in infra repository and provides significant
efficiency gains without compromising security guarantees.1 parent 939452e commit 3208fea
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
0 commit comments