Skip to content

fix(ci): repair unparseable permissions scalar (1 workflow file(s)) - #47

Closed
hyperpolymath wants to merge 2 commits into
mainfrom
fix/workflow-permissions-scalar-parse-error
Closed

hyperpolymath wants to merge 2 commits into
mainfrom
fix/workflow-permissions-scalar-parse-error

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

permissions: read-all followed by an indented actions: read is a YAML
parse error. The workflow never starts, so it emits no check run — a
required context silently never reports, and this repository currently looks
greener than a repaired one.

read-all already grants actions: read, so removing the stray line is a
semantic no-op. Each file was verified with a real YAML parser: it fails
yq before the change and parses after it. Every diff is exactly one deleted line.

Files changed: scorecard.yml

Measured estate-wide: 42 such files across 28 repositories on main, all
carrying the identical stray key. Zero overlap with the TokenPermissions sweep.

🤖 Generated with Claude Code

https://claude.ai/code/session_0178nN4Nm3neFRy5K9StZKnB

A scalar `permissions: read-all` followed by an indented `  actions: read`
is a YAML parse error, so the workflow never starts. It emits no check run at
all, which means a required context silently never reports and the repository
looks greener than a repaired one.

`read-all` already grants `actions: read`, so deleting the stray line is a
semantic no-op. Verified with a real parser: each file fails `yq` before the
change and parses after it.

Files: scorecard.yml

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0178nN4Nm3neFRy5K9StZKnB
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 9d8eed21-77b4-47cf-80e2-724dc3641620

📥 Commits

Reviewing files that changed from the base of the PR and between 7197a75 and 42148f0.

📒 Files selected for processing (1)
  • .github/workflows/scorecard.yml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hyperpolymath
hyperpolymath enabled auto-merge (squash) September 14, 2026 22:22
scorecard.yml is already repaired on branch fix/repair-startup-dead-scorecard-yml
(PR #46), which re-indents `actions: read` INTO the analysis job's own
permissions block. That is the correct cure: job-level permissions REPLACE the
top-level map, so the analysis job never inherited `read-all` and Scorecard was
running without `actions: read`. Deleting the stray line made the file parse but
left the job functionally short.

Restoring this file from main so PR #46 owns it uncontested.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0178nN4Nm3neFRy5K9StZKnB
@hyperpolymath

Copy link
Copy Markdown
Owner Author

Closing: this PR only touched scorecard.yml, which is already owned by #46 on fix/repair-startup-dead-scorecard-yml.

#46 is the correct cure. It re-indents actions: read into the analysis job's own permissions: block. Job-level permissions: replaces the top-level map rather than merging with it, so the job never inherited read-all — Scorecard was running without actions: read. Deleting the stray line (what this PR did) made the file parse but left the job functionally short.

No parse-defect work is lost: every other file in this campaign is unaffected.

🤖 Generated with Claude Code

https://claude.ai/code/session_0178nN4Nm3neFRy5K9StZKnB

auto-merge was automatically disabled September 15, 2026 02:16

Pull request was closed

@hyperpolymath
hyperpolymath deleted the fix/workflow-permissions-scalar-parse-error branch September 18, 2026 13:15
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