Skip to content

fix(ci): re-arm governance — grant actions: read - #83

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/rearm-governance-actions-read
Sep 8, 2026
Merged

fix(ci): re-arm governance — grant actions: read#83
hyperpolymath merged 1 commit into
mainfrom
fix/rearm-governance-actions-read

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Governance is currently disarmed on main in this repo

The standards pin bump landed while this caller granted only contents: read.
The reusable at that pin requires actions: read, so the workflow dies at
startup and reports no checks at all
main looks green because the entire
governance suite is absent, not passing.

Measured on this repo's main: governance.yml latest run = startup_failure,
governance check count = 0 (the healthy count is 15).

This PR adds the one missing line.

Verified: on bofig, aggregate-library, boinc-boinc, cloudguard-cli the same
one-line change took the gate from 0 checks to 15. On cloud-sync-tuner the
cured run is fully green (15 jobs, 0 failures).

🤖 Generated with Claude Code

https://claude.ai/code/session_01QMTyDv9CoJo5PfeNzyp519

The reusable at the pinned standards revision requires actions: read. A caller
granting only contents: read dies at startup and reports NO governance checks at
all, silently disarming the whole gate (0 checks instead of 15).

Verified on bofig: run 34200437178 at the patched head reported all 15 governance
jobs; before the patch the run was startup_failure with zero checks.

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

sonarqubecloud Bot commented Sep 8, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 59efc902-e10b-4713-bdeb-6257d317c636

📥 Commits

Reviewing files that changed from the base of the PR and between fa631d5 and 8ce7ca1.

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

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
🔇 Additional comments (1)
.github/workflows/governance.yml (1)

30-30: LGTM!


📝 Summary

Summary by CodeRabbit

  • Chores
    • Updated workflow permissions to allow read-only access to action metadata.

Walkthrough

The governance workflow now includes top-level read-only permission for GitHub Actions.

Changes

Governance workflow

Layer / File(s) Summary
Add Actions read permission
.github/workflows/governance.yml
The workflow grants actions: read alongside the existing contents permission.

Priority: ➖ Normal — Schedule the governance permission fix because the missing read access prevents the workflow from starting and suppresses all 15 governance checks.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 8ce7c

The governance workflow can read Actions metadata required to start its reusable checks while retaining read-only permissions. No current merge-blocking risk is identified.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: granting read-only access to the Actions permission to restore the governance workflow.
Description check ✅ Passed The description directly explains the startup failure, the missing actions: read permission, and the expected restoration of governance checks.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

A rabbit checks the workflow gate
Read-only Actions now set the state
Contents remain in view
Permissions stay few
The burrow ships on time, not late

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

@hyperpolymath
hyperpolymath merged commit 21a59cb into main Sep 8, 2026
31 checks passed
@hyperpolymath
hyperpolymath deleted the fix/rearm-governance-actions-read branch September 8, 2026 17:47
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