Commit f0fcade
ci(scorecards): mirror ephapax#264 — startup_failure + webapp 400
Two estate-wide failures that ephapax fixed today and boj-server still
carries. Mirror the same fix to keep the sibling repos in sync.
### `scorecard.yml` — caller alignment
Workflow was startup_failure-on-every-run because the caller diverged
from `hyperpolymath/standards`'s `scorecard-reusable.yml` documented
caller example in 4 ways:
- missing `concurrency:` group (re-pushes piled up superseded runs)
- `branch_protection_rule:` trigger present (unused; complicates startup)
- `secrets: inherit` against a reusable with no `secrets:` block
- `permissions: read-all` instead of explicit `contents: read`
Now matches the reusable's header example verbatim. SHA pin unchanged
(`e0caf11508a3989574713c78f5f444f2ce5e33ef`).
### `scorecard-enforcer.yml` — two-job split
Score itself was succeeding (~5.5 typical), but the OSSF Scorecard
webapp HTTP-400'd the signed-result POST whenever the `scorecard` job
contained a `run:` step (per
https://github.com/ossf/scorecard-action#workflow-restrictions —
"scorecard job must only have steps with `uses`"). The webapp's
workflow verifier rejects mixed-shape jobs when `publish_results: true`
triggers the signed-publish path.
Split into:
- `scorecard` (uses-only): runs scorecard-action with publish,
uploads SARIF, saves results.sarif as an artifact for Job 2.
- `enforce-min-score` (needs: scorecard): downloads the artifact and
runs the bash min-score gate. `run:` steps are fine here because
this job does not call scorecard-action.
Action SHA pins verified via `gh api repos/<org>/<action>/commits/<sha>`
(`actions/upload-artifact@4cec3d8` + `actions/download-artifact@cc20338`).
Refs hyperpolymath/ephapax#264
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0724af5 commit f0fcade
2 files changed
Lines changed: 66 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
3 | 28 | | |
4 | 29 | | |
5 | 30 | | |
| |||
43 | 68 | | |
44 | 69 | | |
45 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
46 | 87 | | |
47 | 88 | | |
48 | | - | |
| 89 | + | |
49 | 90 | | |
50 | 91 | | |
51 | 92 | | |
52 | 93 | | |
53 | | - | |
| 94 | + | |
54 | 95 | | |
55 | 96 | | |
56 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
2 | 15 | | |
3 | 16 | | |
4 | 17 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 18 | | |
9 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
10 | 27 | | |
11 | | - | |
| 28 | + | |
| 29 | + | |
12 | 30 | | |
13 | 31 | | |
14 | 32 | | |
15 | 33 | | |
16 | 34 | | |
17 | 35 | | |
18 | 36 | | |
19 | | - | |
| |||
0 commit comments