The @.github/workflows/claude-review.yml can't post PR review comments, in the logs I…
- User
The @.github/workflows/claude-review.yml can't post PR review comments, in the logs I see:
codeParameters: { "command": "gh pr review 2879 --comment -b \"Review: This PR makes zephyr use region-local marin-tmp scratch buckets (3-day TTL) for chunk storage instead of writing under the main MARIN_PREFIX path. Fixes 2628. Three findings: (1) __post_init__ loses MARIN_PREFIX fallback - before, ZephyrContext fell back to MARIN_PREFIX/tmp/zephyr; now it only tries _get_temp_chunk_prefix() then /tmp/zephyr, which silently breaks programmatic distributed use when metadata is unavailable and MARIN_PREFIX does not match gs://marin-*. (2) Extra eu-west4 alias in zephyr _REGION_TO_TMP_BUCKET that is absent from iris env_probe.py and infra/configure_temp_buckets.py, violating the stated sync invariant on day one. (3) Triple copy of _REGION_TO_TMP_BUCKET acknowledged as SAD per 2768. Tests are correct and cover the three main paths.\"", "description": "Post PR review" } ❌ Error: This command requires approval Token usage: 44994 input, 1 outputPlease research and fix
Assistant
Let me research the issue. The error shows that the
gh pr reviewcommand isn't in the allowed tools list for the Claude action.Assistant
The problem is clear. On line 72, the
--allowedToolslist includesBash(gh pr comment:*),Bash(gh pr diff:*), andBash(gh pr view:*), but it does not includeBash(gh pr review:*). The Claude agent tried to rungh pr reviewto post a review comment, and that command wasn't approved.Let me also check the review prompt to see if it instructs Claude to use
gh pr review.Assistant
The fix is straightforward — add
Bash(gh pr review:*)to the--allowedToolslist.Assistant
The fix: added
Bash(gh pr review:*)to the--allowedToolslist on line 72.The
--allowedToolswas missing thegh pr reviewcommand pattern. Claude was trying to post a review usinggh pr review 2879 --comment -b "...", but onlygh pr comment,gh pr diff, andgh pr viewwere allowed. The new pattern permitsgh pr reviewwith any arguments.