]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
github: allow grep in claude code review
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 11 Apr 2026 22:04:33 +0000 (00:04 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 12 Apr 2026 15:02:00 +0000 (17:02 +0200)
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 <noreply@anthropic.com>
Link: https://github.com/openwrt/openwrt/pull/22897
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
.github/workflows/claude-code-review.yml

index 6115d33428ecaf4b21bc5683d572bae44325a732..d53f085f22504713b2cf48a2c0ff70ebcbcb676f 100644 (file)
@@ -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:*)"