]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
github: remove allowedTools restriction from claude-code-review
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Mar 2026 20:28:54 +0000 (21:28 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Mar 2026 20:37:55 +0000 (21:37 +0100)
The whitelist was too restrictive, causing permission denials when
Claude tried to use basic tools like Read or Grep to analyse the diff.
Remove it and let the action use its default toolset.

Fixes: c0e75c9de6f2 ("github: add Claude code review workflow triggered by /claude comment")
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
.github/workflows/claude-code-review.yml

index 9682131eaa07d49dacf7f9af8942d1e0ea46c646..df19bcd290d72a84949617a85c5f39842172afc5 100644 (file)
@@ -33,6 +33,3 @@ jobs:
           prompt: >-
             Review this PR for an OpenWrt embedded Linux project,
             focusing on correctness, security, and coding conventions.
-          claude_args: >-
-            --allowedTools
-            "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"