Skip to content

ci: grant claude-review write perms so PR reviews can post#531

Merged
danielchalef merged 1 commit into
mainfrom
fix/claude-review-permissions
Jun 18, 2026
Merged

ci: grant claude-review write perms so PR reviews can post#531
danielchalef merged 1 commit into
mainfrom
fix/claude-review-permissions

Conversation

@danielchalef

Copy link
Copy Markdown
Member

Problem

The Claude Code Review workflow (.github/workflows/claude-code-review.yml, added in #530) grants only:

permissions:
  pull-requests: read
  issues: read

The anthropics/claude-code-action runs the review but cannot post its findings with read-only scope. Observed on PRs #522#527 and #529 after rebasing them onto the workflow: the claude-review run completes success (~6 min, 9 turns) but logs permission_denials_count: 20 and No 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-requests and issues to write (kept contents: 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

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 danielchalef merged commit 5ea2569 into main Jun 18, 2026
4 of 5 checks passed
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>
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