Commit 95517f5
ci: fix Scorecard score-gate to read JSON .score (SARIF lacks the aggregate)
The score-gate job was already split out (uses-only publish job + separate
gate), but it parsed the score from SARIF at
.runs[0].tool.driver.properties.score, which SARIF does not carry. The gate
therefore read 0 via the `// 0` fallback and failed the < 5 check on every
push to main (verified live: scorecard-enforcer run 27468148000, score-gate
job failed with "Scorecard score 0 is below minimum 5").
Fix: run the gate's scorecard in JSON mode (results_format: json,
publish_results: false) and read the aggregate at top-level `.score`.
Converged onto the estate-canonical enforcer (bounded timeouts, SHA pins).
https://claude.ai/code/session_01VwbFNQJw23tW8tqM7utWku1 parent 3f03f17 commit 95517f5
1 file changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| |||
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
66 | | - | |
67 | | - | |
| 74 | + | |
| 75 | + | |
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
72 | | - | |
73 | | - | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
| |||
0 commit comments