Commit 770441f
ci(scorecard-enforcer): split score-threshold from publish job (OSSF run-step ban) (#37)
## Summary
This repo's `scorecard-enforcer.yml` has the OSSF publish-contract
violation that hyperpolymath/standards#304 fixed in the canonical
template. Every Scorecard run fails with:
```
webapp: scorecard job must only have steps with uses
```
## Root cause
OSSF's publish endpoint enforces a hard contract: the job that runs
`ossf/scorecard-action` with `publish_results: true` must contain ONLY
`uses:` steps. The pre-fix template's "Check minimum score" `run:` step
in the same job fails the publish step and the whole workflow run.
## Fix
Replace local file with the post-#304 standards template:
- `scorecard` job: uses-only (now includes `upload-artifact` for SARIF
hand-off)
- `check-score` job: `needs: scorecard`, downloads artifact, runs the
threshold gate
## Detection going forward
Hypatia rule WF014 in hyperpolymath/hypatia#393 catches this pattern.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 30c377e commit 770441f
1 file changed
Lines changed: 42 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
15 | 34 | | |
16 | 35 | | |
17 | 36 | | |
18 | 37 | | |
19 | 38 | | |
20 | 39 | | |
21 | | - | |
| 40 | + | |
22 | 41 | | |
23 | 42 | | |
24 | 43 | | |
25 | 44 | | |
26 | | - | |
| 45 | + | |
27 | 46 | | |
28 | 47 | | |
29 | 48 | | |
30 | 49 | | |
31 | 50 | | |
32 | 51 | | |
33 | | - | |
| 52 | + | |
34 | 53 | | |
35 | 54 | | |
36 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
37 | 74 | | |
38 | 75 | | |
39 | | - | |
40 | 76 | | |
41 | 77 | | |
42 | 78 | | |
| |||
53 | 89 | | |
54 | 90 | | |
55 | 91 | | |
56 | | - | |
| 92 | + | |
57 | 93 | | |
58 | 94 | | |
59 | 95 | | |
| |||
0 commit comments