Skip to content

workflow: allow Read, Grep, Glob tools for Claude review#37

Merged
heskew merged 1 commit into
mainfrom
workflow/allow-review-tools
Apr 17, 2026
Merged

workflow: allow Read, Grep, Glob tools for Claude review#37
heskew merged 1 commit into
mainfrom
workflow/allow-review-tools

Conversation

@heskew
Copy link
Copy Markdown
Member

@heskew heskew commented Apr 17, 2026

Summary

First live review run on PR #36 hit max_turns at turn 9 with permission_denials_count: 9. Claude couldn't read CLAUDE.md or inspect code because the default claude-code-action@v1 tool policy denies everything not explicitly allowed, and we hadn't set an allowlist.

Adding --allowedTools Read,Grep,Glob to claude_args gives read-only access sufficient for baseline review:

  • Read — load CLAUDE.md, tested files, files referenced in the diff
  • Grep — search for patterns (e.g. "where else is this API called?")
  • Glob — find files by pattern

Deliberately omitting Edit/Write/Bash — a reviewer shouldn't need to modify files or run shell commands, and the implicit deny list keeps attack surface minimal. If a future review needs git history inspection, we can add Bash(git:*).

Test plan

Context

This is the first calibration learning from the pilot. PR #36 remains red on the review check until this merges; its test-fix contents are independently validated (Node + Bun green there).

First live review (PR #36) hit max_turns with 9 permission denials —
Claude couldn't read CLAUDE.md or inspect code because the default
v1 action tool policy denies everything not explicitly allowed.

Adding --allowedTools Read,Grep,Glob gives read-only access sufficient
for baseline review. Deliberately omitting Edit/Write/Bash — reviewer
shouldn't need to modify files or run shell commands, and the implicit
deny list keeps attack surface minimal.

If a future review needs git history inspection, add Bash(git:*).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@heskew heskew requested a review from a team as a code owner April 17, 2026 20:27
@heskew
Copy link
Copy Markdown
Member Author

heskew commented Apr 17, 2026

Both ci failures are known and being fixed (one by this pr)

@heskew heskew merged commit 048313c into main Apr 17, 2026
3 of 5 checks passed
@heskew heskew deleted the workflow/allow-review-tools branch April 17, 2026 20:29
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