fix(permissions-guard): require all jobs in read-only workflows to declare read permissions (closes #581) - #597
Conversation
…text, so it is vacuous for caller workflows (closes #590)
…L parsing (closes #590)
…ocumented 60 for agent workflows (closes #592)
…ermanently out-of-service reviewer, and dispatching it red-Xes PRs (closes #584)
…declare permissions is classified from the declared ones alone (closes #581)
…clare read permissions (closes #581)
|
@claude review |
|
👀 Picked up by workflow run #32678083484. Setup runs first; Claude itself responds after that. |
This comment has been minimized.
This comment has been minimized.
|
Caution OpenCode review failed: the CLI exited 1 without completing the review. A non-zero exit means the run did not complete (auth rejection, quota or Raw CLI output |
|
Caution OpenCode review failed: the CLI exited 1 without completing the review. A non-zero exit means the run did not complete (auth rejection, quota or Raw CLI output |
|
Caution OpenCode review failed: the CLI exited 1 without completing the review. A non-zero exit means the run did not complete (auth rejection, quota or Raw CLI output |
|
bugbot run |
Bugbot couldn't run — GitHub account mismatchThe GitHub account linked to your Cursor account does not match the PR author. Please ensure you're using the correct GitHub account, or run Bugbot from a team that covers this repository. |
|
bugbot run |
Bugbot couldn't run — GitHub account mismatchThe GitHub account linked to your Cursor account does not match the PR author. Please ensure you're using the correct GitHub account, or run Bugbot from a team that covers this repository. |
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 914018f. Configure here.
|
@claude review |
|
/review |
|
👀 Picked up by workflow run #32699230668. Setup runs first; Claude itself responds after that. |
This comment has been minimized.
This comment has been minimized.
|
Warning No review ran --- this PR edits
|
Closes #581
Depends on: #596
WIP — opened up front to claim the issue; implementing now.
Note
Medium Risk
Tightens GHA token-permission classification so undeclared jobs no longer look read-only; a bug here could mis-document caller grants. Workflow jobs only add empty
permissions: {}on assert-only gates.Overview
Fixes gha#581:
run-permissions-docs-testsno longer treats a reusable workflow as read-only just because some jobs declare read permissions. Jobs without apermissions:block now inherit the workflow-level map, or are treated as not read-only if that is also missing (caller token could include write).Adds
permissions: {}on therequire-reviewjobs in Claude, Gemini, and OpenCode review workflows so those assert-only jobs do not inherit caller write tokens. Empty{}still counts as read-only.Self-test covers a mixed declared/undeclared two-job workflow.
Reviewed by Cursor Bugbot for commit 914018f. Bugbot is set up for automated code reviews on this repo. Configure here.