ci: explicitly allow the review's posting tools via claude_args#10
Merged
Conversation
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>
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.
Summary
Third and hopefully final piece of the review-pipeline fix. The state after #6 (write permission) and #8 (
--comment):Bash(gh pr comment)✅The code-review plugin's
allowed-toolsfrontmatter listsmcp__github_inline_comment__create_inline_comment, but that grant doesn't take effect for the MCP tool in the action's headless mode — only theghBash patterns worked. The action's docs prescribeclaude_args: --allowedTools ...for this; this PR passes the plugin's exact tool list through it.As with #6/#8, the
claude-reviewcheck 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