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 <noreply@anthropic.com> Link: https://github.com/openwrt/openwrt/pull/22897 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
05e111aa42
commit
a41cd892b7
2
.github/workflows/claude-code-review.yml
vendored
2
.github/workflows/claude-code-review.yml
vendored
@ -32,5 +32,5 @@ jobs:
|
|||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
trigger_phrase: "/claude"
|
trigger_phrase: "/claude"
|
||||||
claude_args: >-
|
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:*)"
|
--disallowedTools "Bash(git add:*),Bash(git commit:*),Bash(git rm:*),Bash(git push:*)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user