Skip to content

Fix workflow permissions for PR comments#3

Merged
jim80net merged 1 commit intomainfrom
fix/workflow-permissions
Mar 7, 2026
Merged

Fix workflow permissions for PR comments#3
jim80net merged 1 commit intomainfrom
fix/workflow-permissions

Conversation

@jim80net
Copy link
Owner

@jim80net jim80net commented Mar 7, 2026

Summary

  • Change pull-requests and issues permissions from read to write in claude-code-review.yml and claude.yml
  • Without write permissions, anthropics/claude-code-action runs Claude successfully but silently fails to post review comments

Root cause

The GitHub API requires pull-requests: write to create PR comments. With read-only tokens, the API returns 403 but the action exits 0, so no error surfaced.

Test plan

  • Merge this PR, then push to any open PR
  • Verify Claude Code Review posts comments on the PR

🤖 Generated with Claude Code

Both claude-code-review.yml and claude.yml had pull-requests: read
and issues: read. The anthropics/claude-code-action needs write
permissions to post review comments via the GitHub API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jim80net jim80net merged commit 166afd2 into main Mar 7, 2026
1 check failed
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