Commit e6acb0b
ci(scorecard-enforcer): split score-threshold from publish job (OSSF run-step ban) (#86)
## 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 6c966d9 commit e6acb0b
1 file changed
Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
24 | 34 | | |
25 | 35 | | |
26 | 36 | | |
| |||
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
46 | 74 | | |
47 | 75 | | |
48 | | - | |
49 | 76 | | |
50 | 77 | | |
51 | 78 | | |
| |||
0 commit comments