Commit a36f2bb
ci(scorecard): add job-level permissions for reusable workflow (#83)
## Summary
Adds the job-level `permissions: { security-events: write, id-token:
write }` block to the `analysis` job in
`.github/workflows/scorecard.yml`, fixing the silent `startup_failure`
on every Scorecard run.
## Why
`scorecard-reusable.yml`'s docstring states:
> Caller MUST grant `security-events: write` and `id-token: write` on
the calling job. The reusable re-asserts these on its own analysis job,
but **called-workflow permissions are CAPPED by the caller's permissions
block.**
Without this, `ossf/scorecard-action` cannot upload SARIF, the workflow
fails at startup, and there are no logs.
## Sweep
Part of estate-wide sweep tracked at hyperpolymath/standards#282.
Pattern shipped in julia-professional-registry#19 (2026-05-27) and
absolute-zero#68 (2026-05-30).
## Test plan
- [ ] Next Scorecard run completes successfully (cron `'23 4 * * 1'`)
- [ ] SARIF appears in Security tab
- [ ] No `startup_failure` runs after merge
Refs hyperpolymath/standards#282
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 23b44b3 commit a36f2bb
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
0 commit comments