Skip to content

fix(ci): clear OSSF Scorecard startup_failure (grant caller security-events + id-token)#65

Merged
hyperpolymath merged 1 commit into
mainfrom
worktree-fix-scorecard-startup
Jul 6, 2026
Merged

fix(ci): clear OSSF Scorecard startup_failure (grant caller security-events + id-token)#65
hyperpolymath merged 1 commit into
mainfrom
worktree-fix-scorecard-startup

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

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.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 — this is hypatia lint WF018.

Fix

Align the caller to the rsr-template-repo canonical shape:

Verification

  • YAML validated (yaml.safe_load OK)
  • Shape matches the documented template caller in hyperpolymath/rsr-template-repo

🤖 Generated with Claude Code

…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
hyperpolymath marked this pull request as ready for review July 6, 2026 20:49
@hyperpolymath
hyperpolymath merged commit 224aa07 into main Jul 6, 2026
29 of 33 checks passed
@hyperpolymath
hyperpolymath deleted the worktree-fix-scorecard-startup branch July 6, 2026 20:49
@sonarqubecloud

sonarqubecloud Bot commented Jul 6, 2026

Copy link
Copy Markdown

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant