Commit d82d3ff
ci(scorecard-enforcer): split score-threshold from publish job (OSSF run-step ban) (#51)
## 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 dba274c commit d82d3ff
1 file changed
Lines changed: 40 additions & 20 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 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
16 | 34 | | |
17 | 35 | | |
18 | 36 | | |
| |||
28 | 46 | | |
29 | 47 | | |
30 | 48 | | |
31 | | - | |
| 49 | + | |
32 | 50 | | |
33 | 51 | | |
34 | | - | |
| 52 | + | |
35 | 53 | | |
36 | 54 | | |
37 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
38 | 74 | | |
39 | 75 | | |
40 | | - | |
41 | 76 | | |
42 | 77 | | |
43 | 78 | | |
| |||
63 | 98 | | |
64 | 99 | | |
65 | 100 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 101 | | |
81 | 102 | | |
82 | 103 | | |
83 | 104 | | |
84 | 105 | | |
85 | | - | |
| 106 | + | |
86 | 107 | | |
87 | | - | |
88 | 108 | | |
0 commit comments