Commit 9b0875f
feat(rules): consolidate two parallel SHA-pin databases into one canonical source (#385)
## Summary
Audit 2026-05-28 Part 3.7 flagged the two-database setup as a
maintenance hazard. Consolidating:
| Before | Entries | Unique-to-it |
|---|---|---|
| `SecurityErrors.@sha_pins` | 17 | `ocaml/setup-ocaml@v3`,
`softprops/action-gh-release@v2` |
| `WorkflowAudit.@known_good_shas` | 19 | `github/codeql-action@v4`,
`denoland/setup-deno@v2`, 3× `hyperpolymath/*` |
| After | Entries | Notes |
|---|---|---|
| `SecurityErrors.@sha_pins` | **22** (union) | canonical |
| `WorkflowAudit.known_good_shas/0` | delegates | no longer carries its
own map |
In-file callers updated: `WorkflowAudit.check_unpinned_actions/1` +
`WorkflowAudit.check_wrong_pins/1` now call `SecurityErrors.sha_pins/0`.
`slsa-framework/slsa-github-generator` is still deliberately omitted
(pin-exempt per `SecurityErrors.@pin_exempt` and hypatia#262).
## Test plan
- [x] 5 cases in `test/rules/sha_pin_consolidation_test.exs`: delegation
equality, entries-formerly-unique-to-each-place survive, shared entries
unchanged, total ≥ 22
- [x] 5/5 pass via standalone elixir
- [ ] Full `mix test` green in CI
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2a2198d commit 9b0875f
3 files changed
Lines changed: 80 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
273 | 283 | | |
274 | 284 | | |
275 | 285 | | |
276 | 286 | | |
| 287 | + | |
277 | 288 | | |
| 289 | + | |
278 | 290 | | |
279 | 291 | | |
280 | 292 | | |
| |||
287 | 299 | | |
288 | 300 | | |
289 | 301 | | |
290 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
291 | 306 | | |
292 | 307 | | |
293 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
70 | 53 | | |
71 | 54 | | |
72 | | - | |
| 55 | + | |
| 56 | + | |
73 | 57 | | |
74 | 58 | | |
75 | 59 | | |
| |||
250 | 234 | | |
251 | 235 | | |
252 | 236 | | |
253 | | - | |
| 237 | + | |
254 | 238 | | |
255 | 239 | | |
256 | 240 | | |
| |||
272 | 256 | | |
273 | 257 | | |
274 | 258 | | |
275 | | - | |
| 259 | + | |
276 | 260 | | |
277 | 261 | | |
278 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments