Skip to content

ci: allowlist the tools Claude review needs to post#139

Merged
fullstackjam merged 1 commit into
mainfrom
ci/claude-review-allowed-tools
Jul 10, 2026
Merged

ci: allowlist the tools Claude review needs to post#139
fullstackjam merged 1 commit into
mainfrom
ci/claude-review-allowed-tools

Conversation

@fullstackjam

Copy link
Copy Markdown
Member

What does this PR do?

Adds claude_args: --allowed-tools ... to the Claude Code Review workflow so it can actually post its review.

Why?

The review workflow completes successfully but posts nothing. The failure mode evolved as we narrowed it:

  • Originally pull-requests: read → the run never reached the posting tool (permission_denials_count: 0), logged No buffered inline comments, posted nothing.
  • ci: fix harness drift — Claude review, L4 trigger, Go 1.25.12 #136 granted pull-requests/issues: write → the run now tries to post and hits permission_denials_count: 1, still No buffered inline comments.

That 1 denial is the /code-review plugin calling mcp__github_inline_comment__create_inline_comment, which isn't in the action's default allowlist. This PR allowlists it, plus the gh pr diff/view/comment commands the review reads context with. Write permission (#136) was necessary; the allowlist is the missing second half.

Auth (claude_code_oauth_token) and the /code-review plugin prompt are unchanged — the logs show both already work.

Testing

  • YAML validated (yaml.safe_load)
  • Cannot self-verify: claude-code-action skips its run on any PR that edits its own workflow file (anti-tamper guard — we observed this on ci: fix harness drift — Claude review, L4 trigger, Go 1.25.12 #136). This fix activates on the next PR that doesn't touch the workflow; that PR's claude-review run should show permission_denials_count: 0 and an actual posted review.

Cross-repo checklist

  • Docs/content update in openboot.dev? — No
  • CLI ↔ server API contract change? — No

Notes for reviewer

  • .github/workflows/ change — no repo settings/secrets touched; the tool allowlist is the only change.
  • Diagnosis is docs-backed (claude-code-action's github-inline-comment-server.ts + issue #548) and consistent with the observed 0→1 denial transition.

https://claude.ai/code/session_01HLoiSd2k9EJJ1HPjjDgUgo

The review workflow ran to success but never posted. #136 granted
pull-requests/issues write, which moved it from "0 tool denials, posts
nothing" to "1 denial, posts nothing" — the /code-review plugin now tries
mcp__github_inline_comment__create_inline_comment but the action's default
allowlist blocks it, so the review buffers and is dropped ("No buffered
inline comments").

Allowlist that tool plus the gh commands the review reads context with.
Auth and the plugin prompt are unchanged — both already work.

Note: this can't self-verify — claude-code-action skips its run on any PR
that edits its own workflow file (anti-tamper). It activates on the next
PR that doesn't touch the workflow.

Claude-Session: https://claude.ai/code/session_01HLoiSd2k9EJJ1HPjjDgUgo
@github-actions github-actions Bot added the ci CI/CD changes label Jul 10, 2026
@fullstackjam fullstackjam merged commit 8117ece into main Jul 10, 2026
12 of 13 checks passed
@fullstackjam fullstackjam deleted the ci/claude-review-allowed-tools branch July 10, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant