Skip to content

ci: explicitly allow the review's posting tools via claude_args#10

Merged
riglar merged 1 commit into
devfrom
ci/claude-review-allowed-tools
Jun 12, 2026
Merged

ci: explicitly allow the review's posting tools via claude_args#10
riglar merged 1 commit into
devfrom
ci/claude-review-allowed-tools

Conversation

@riglar

@riglar riglar commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Third and hopefully final piece of the review-pipeline fix. The state after #6 (write permission) and #8 (--comment):

The code-review plugin's allowed-tools frontmatter lists mcp__github_inline_comment__create_inline_comment, but that grant doesn't take effect for the MCP tool in the action's headless mode — only the gh Bash patterns worked. The action's docs prescribe claude_args: --allowedTools ... for this; this PR passes the plugin's exact tool list through it.

As with #6/#8, the claude-review check on this PR itself will fail with "Workflow validation failed" (anti-tamper guard on modified workflow files — ignore it). Real verification: re-trigger the review on PR #9 after this merges; its findings should land as inline comments.

🤖 Generated with Claude Code

PR #9's review ran 40 turns, found issues, and hit 46 permission
denials trying to post them — the plugin command's allowed-tools
frontmatter doesn't reach the inline-comment MCP tool in the action's
headless mode (the gh pr comment path worked on #7, inline comments
never have). Pass the same tool list through --allowedTools, the
mechanism the action's docs prescribe.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@riglar riglar merged commit 95b0fef into dev Jun 12, 2026
0 of 2 checks passed
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