fix(ci): clear OSSF Scorecard startup_failure (grant caller security-events + id-token)#65
Merged
Merged
Conversation
…tartup_failure The OSSF Scorecard workflow failed at startup (0s) on every scheduled run. The reusable scorecard-reusable.yml job requests `security-events: write` and `id-token: write`, but reusable called-workflow permissions are capped by the caller's grants — this caller only granted `contents: read`, so GitHub rejected the run at startup (hypatia WF018). Align the caller to the rsr-template-repo canonical shape: add the job-level permissions block (contents: read + security-events: write + id-token: write), plus concurrency and timeout-minutes. Pin unchanged (d7c227, per PR#62). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
hyperpolymath
marked this pull request as ready for review
July 6, 2026 20:49
|
hyperpolymath
added a commit
that referenced
this pull request
Jul 6, 2026
…) (#66) Follow-up to #65. ## Problem #65 added the required caller permissions (clearing the *original* `startup_failure` from missing `security-events`/`id-token`), but it also copied `timeout-minutes: 15` from `rsr-template-repo`. That key is **not permitted on a job that calls a reusable workflow** via `uses:` — only `name/uses/with/secrets/needs/if/permissions` are allowed — so the Scorecard run kept failing at startup. Confirmed with `actionlint`: > when a reusable workflow is called with \"uses\", \"timeout-minutes\" is not available. ## Fix Remove `timeout-minutes`. Keep the permissions block (the real fix) and the concurrency guard. `actionlint` now passes clean. ## Upstream note `hyperpolymath/rsr-template-repo`'s `scorecard.yml` carries the **same** invalid `timeout-minutes` and needs the same fix — its own Scorecard run is likely failing too. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (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.



Problem
The OSSF Scorecard workflow failed at startup (
startup_failure, 0s) on every scheduled run (observed 2026-07-05 and 2026-07-06).The reusable
scorecard-reusable.ymljob requestssecurity-events: writeandid-token: write, but reusable called-workflow permissions are capped by the caller's grants. This caller only grantedcontents: read, so GitHub rejected the run at startup — this is hypatia lint WF018.Fix
Align the caller to the
rsr-template-repocanonical shape:permissionsblock:contents: read+security-events: write+id-token: writeconcurrency(cancel-in-progress) andtimeout-minutes: 15d7c227, per ci: refresh standards reusable pins to current HEAD (d7c2271) #62)Verification
yaml.safe_loadOK)hyperpolymath/rsr-template-repo🤖 Generated with Claude Code