ci: grant claude-review write perms so PR reviews can post#531
Merged
Conversation
The Claude Code Review workflow (added in #530) granted only `pull-requests: read` / `issues: read`. The anthropics/claude-code-action needs Pull requests + Issues write access to post its findings as inline PR comments — with read-only, the run succeeds but posts nothing (observed: `permission_denials_count: 20`, `No buffered inline comments`, zero comments on PRs #522–#527/#529). Per the official docs, the action's GitHub App requires Contents/Issues/Pull requests Read & write, and every posting example uses `pull-requests: write` + `issues: write`. Bump pull-requests and issues to write (contents stays read — review-only, no commits/PRs created). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
danielchalef
added a commit
that referenced
this pull request
Jun 18, 2026
The code-review plugin only posts findings when invoked with `--comment`; without it the action reviews the PR (spending tokens) but prints to the hidden terminal and posts nothing. Confirmed across PRs #522–#527/#529: runs complete `success` with write perms (post-#531) but log "No buffered inline comments" and leave zero comments. Per the plugin spec ("If --comment was NOT provided, stop here. Do not post any GitHub comments."). Append --comment to the prompt; #531's pull-requests/issues write perms are required for it to post and stay in place. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Claude Code Review workflow (
.github/workflows/claude-code-review.yml, added in #530) grants only:The
anthropics/claude-code-actionruns the review but cannot post its findings with read-only scope. Observed on PRs #522–#527 and #529 after rebasing them onto the workflow: theclaude-reviewrun completessuccess(~6 min, 9 turns) but logspermission_denials_count: 20andNo buffered inline comments, and zero comments land on the PRs.Docs
Per Claude Code GitHub Actions: the action's GitHub App requires Contents / Issues / Pull requests: Read & write, and every posting workflow example uses
pull-requests: write+issues: write.Fix
Bump
pull-requestsandissuestowrite(keptcontents: read— this is review-only; it doesn't push commits or open PRs).After merge
Re-trigger reviews on the open PRs (a re-push /
synchronize) so they post their findings.🤖 Generated with Claude Code