github: prevent Claude from making commits during PR review
The workflow already uses contents: read which prevents GitHub from
accepting any push. The --disallowedTools setting adds a second layer
by stopping Claude from even attempting git write operations.
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>
(cherry picked from commit 05e111aa42)
Link: https://github.com/openwrt/openwrt/pull/24318
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
@@ -33,3 +33,4 @@ jobs:
|
||||
trigger_phrase: "/claude"
|
||||
claude_args: >-
|
||||
--allowedTools "mcp__github_inline_comment__create_inline_comment"
|
||||
--disallowedTools "Bash(git add:*),Bash(git commit:*),Bash(git rm:*),Bash(git push:*)"
|
||||
|
||||
Reference in New Issue
Block a user