Commit eb5529b
committed
CI hygiene: gate secret dispatch; split scorecard publish from score gate
Address the two remaining high-severity Hypatia workflow-audit findings
(both pre-existing):
- instant-sync.yml (secret_action_without_presence_gate): gate the
peter-evans/repository-dispatch step on FARM_DISPATCH_TOKEN presence via
a job-level env + step-level if, so it skips cleanly where the secret is
absent instead of running with an empty token.
- scorecard-enforcer.yml (scorecard_publish_with_run_step): split the
privileged publish job (id-token: write) from the score enforcement.
The scorecard job now only analyzes, publishes, and uploads SARIF (no
run: steps); a new unprivileged score-gate job (contents: read)
re-derives the score read-only and fails on a low score. publish_results
does not affect the computed score, so the gate behaviour is unchanged.
No new actions introduced (reuses already-pinned actions).1 parent 728ce37 commit eb5529b
2 files changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
47 | 70 | | |
48 | 71 | | |
49 | 72 | | |
| |||
0 commit comments