From a41cd892b7c5d0405fd352ced5099f8e3a6ccfa8 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 12 Apr 2026 00:04:33 +0200 Subject: [PATCH] github: allow grep in claude code review Allow Bash(grep:*) so Claude can search the codebase for context during PR reviews. Without this, grep calls using shell glob patterns were denied even though plain directory greps were allowed. Co-Authored-By: Claude Sonnet 4.6 Link: https://github.com/openwrt/openwrt/pull/22897 Signed-off-by: Hauke Mehrtens --- .github/workflows/claude-code-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 6115d33428e..d53f085f225 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -32,5 +32,5 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} trigger_phrase: "/claude" claude_args: >- - --allowedTools "mcp__github_inline_comment__create_inline_comment" + --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(grep:*)" --disallowedTools "Bash(git add:*),Bash(git commit:*),Bash(git rm:*),Bash(git push:*)"