]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Fix allowed tools in claude-review
authorDaan De Meyer <daan@amutable.com>
Tue, 17 Mar 2026 18:46:31 +0000 (19:46 +0100)
committerDaan De Meyer <daan@amutable.com>
Tue, 17 Mar 2026 18:46:31 +0000 (19:46 +0100)
Bash(gh:api *) wasn't actually working. Turns out the colon syntax
is deprecated and unnecessary. Let's stop using it which also fixes
the bug so that gh api calls are allowed now.

.github/workflows/claude-review.yml

index 05c1e3eb5f710d6e54cc3fe23b16cb517732c1e2..6860380fd850cba6c7978b2f91a2022601c6308b 100644 (file)
@@ -195,10 +195,10 @@ jobs:
             --max-turns 100
             --allowedTools "
                 Read,LS,Grep,Glob,Task,TaskStop,
-                Bash(cat:*),Bash(test:*),Bash(printf:*),Bash(jq:*),Bash(head:*),Bash(tail:*),
-                Bash(git:*),Bash(grep:*),Bash(find:*),Bash(ls:*),Bash(wc:*),
-                Bash(gh:api *),
-                Bash(diff:*),Bash(sed:*),Bash(awk:*),Bash(sort:*),Bash(uniq:*),
+                Bash(cat *),Bash(test *),Bash(printf *),Bash(jq *),Bash(head *),Bash(tail *),
+                Bash(git *),Bash(grep *),Bash(find *),Bash(ls *),Bash(wc *),
+                Bash(gh api *),
+                Bash(diff *),Bash(sed *),Bash(awk *),Bash(sort *),Bash(uniq *),
                 "
             --json-schema '${{ env.REVIEW_SCHEMA }}'
           prompt: |