Skip to content

Commit ff3f786

Browse files
ci(scorecard): add job-level permissions for reusable workflow (#74)
## 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 66119ab commit ff3f786

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ permissions: read-all
1212

1313
jobs:
1414
analysis:
15+
permissions:
16+
security-events: write
17+
id-token: write
1518
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@e0caf11508a3989574713c78f5f444f2ce5e33ef
1619
secrets: inherit

0 commit comments

Comments
 (0)