ci(scorecard): add job-level permissions for reusable workflow#83
Merged
Conversation
The `scorecard-reusable.yml` reusable requires the calling `analysis` job to declare `security-events: write` and `id-token: write` — called-workflow permissions are CAPPED by the caller's block (the reusable docstring states this explicitly). Without this, every Scorecard run silently fails with `startup_failure` because ossf/scorecard-action cannot upload SARIF. Estate-wide sweep tracked at hyperpolymath/standards#282; same pattern as julia-professional-registry#19 (2026-05-27) and absolute-zero#68 (2026-05-30). Refs hyperpolymath/standards#282 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the job-level
permissions: { security-events: write, id-token: write }block to theanalysisjob in.github/workflows/scorecard.yml, fixing the silentstartup_failureon every Scorecard run.Why
scorecard-reusable.yml's docstring states:Without this,
ossf/scorecard-actioncannot 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
'23 4 * * 1')startup_failureruns after mergeRefs hyperpolymath/standards#282
🤖 Generated with Claude Code