diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index b5f5b62..ffa6666 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -43,6 +43,12 @@ jobs: plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' plugins: 'code-review@claude-code-plugins' prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' + # Allowlist the tools the review needs to POST back. Without the + # inline-comment MCP tool the run buffers a review then silently drops + # it: with pull-requests:read it never reaches the tool (0 denials); + # with write it tries and hits the permission gate (1 denial, "No + # buffered inline comments"). The gh commands let it read diff/context. + claude_args: '--allowed-tools mcp__github_inline_comment__create_inline_comment,Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr comment:*)' # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://code.claude.com/docs/en/cli-reference for available options