Skip to content

Commit bbece3f

Browse files
hyperpolymathclaude
andcommitted
fix(ci): repair unparseable scorecard.yml and restore the missing contents: read
Two defects, and fixing only the first would look like a cure while changing nothing. 1. `permissions: read-all` is a SCALAR, so the indented `actions: read` beneath it is a mapping entry under a scalar: invalid YAML. GitHub never parsed the file, the run emitted zero jobs, and the Scorecard check never appeared. The gate was ABSENT, not red. 2. The `analysis` job declares its own `permissions:` block naming only `security-events` and `id-token`. A job-level block REPLACES the workflow-level one rather than merging with it, so the reusable workflow was being called without `contents: read` and could not check out. Deleting the orphan key alone would yield a file that parses and still emits no check. Adds `contents: read` to the job block, matching aerie#76 (merged 2026-09-13), which carries exactly these three job permissions. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0178nN4Nm3neFRy5K9StZKnB
1 parent 8e8279c commit bbece3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
- cron: '23 4 * * 1'
88

99
permissions: read-all
10-
actions: read
1110

1211
jobs:
1312
analysis:
1413
permissions:
14+
contents: read
1515
security-events: write
1616
id-token: write
1717
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@092dedada188f56c5915f74a5fd40aac093742c3

0 commit comments

Comments
 (0)