Commit 05ff5e1
ci(scorecard-enforcer): split score-threshold from publish job (OSSF run-step ban) (#18)
## 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 c1411d1 commit 05ff5e1
1 file changed
Lines changed: 51 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
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 | | |
| 37 | + | |
18 | 38 | | |
19 | | - | |
20 | 39 | | |
21 | 40 | | |
22 | 41 | | |
23 | 42 | | |
24 | 43 | | |
25 | 44 | | |
26 | | - | |
| 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 | + | |
| 70 | + | |
27 | 71 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 72 | + | |
31 | 73 | | |
32 | 74 | | |
33 | 75 | | |
34 | | - | |
35 | | - | |
| 76 | + | |
36 | 77 | | |
37 | 78 | | |
38 | 79 | | |
39 | 80 | | |
40 | 81 | | |
41 | 82 | | |
42 | | - | |
| 83 | + | |
43 | 84 | | |
44 | 85 | | |
45 | 86 | | |
| |||
0 commit comments