Skip to content

Commit 0f17dd1

Browse files
committed
chore(workflows): tighten claude lockdown in weekly-update (H4)
The two `claude --print` calls (haiku update, sonnet fix) carried only `--allowedTools`. Per the programmatic-Claude rule in CLAUDE.md / the locking-down-programmatic-claude skill, every callsite must set all four flags: `--tools`, `--allowedTools`, `--disallowedTools`, and `--permission-mode dontAsk`. Tighten both invocations: - `--tools` declares the available surface (Bash, Read, Glob, Grep). - `--allowedTools` keeps the surgical Bash patterns + read-side tools. - `--disallowedTools` blocks Edit, Write, Agent, Task, NotebookEdit, WebFetch, WebSearch, plus Bash(rm|mv|curl|wget|sudo:*). - `--permission-mode dontAsk` so unmatched tools fail-closed rather than fall through to a missing canUseTool.
1 parent c9bb97e commit 0f17dd1

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/weekly-update.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ jobs:
8282
8383
set +e
8484
claude --print \
85-
--allowedTools "Bash(pnpm:*)" "Bash(git add:*)" "Bash(git commit:*)" "Bash(git status:*)" "Bash(git diff:*)" "Bash(git log:*)" "Bash(git rev-parse:*)" "Read" "Write" "Edit" "Glob" "Grep" \
85+
--tools "Bash" "Read" "Glob" "Grep" \
86+
--allowedTools "Bash(pnpm:*)" "Bash(git add:*)" "Bash(git commit:*)" "Bash(git status:*)" "Bash(git diff:*)" "Bash(git log:*)" "Bash(git rev-parse:*)" "Read" "Glob" "Grep" \
87+
--disallowedTools "Agent" "Task" "NotebookEdit" "WebFetch" "WebSearch" "Edit" "Write" "Bash(rm:*)" "Bash(mv:*)" "Bash(curl:*)" "Bash(wget:*)" "Bash(sudo:*)" \
88+
--permission-mode dontAsk \
8689
--model haiku \
8790
--max-turns 15 \
8891
"$(cat <<'PROMPT'
@@ -181,7 +184,10 @@ jobs:
181184
process.stdout.write(tmpl);
182185
')
183186
claude --print \
184-
--allowedTools "Bash(pnpm:*)" "Bash(git add:*)" "Bash(git commit:*)" "Bash(git status:*)" "Bash(git diff:*)" "Bash(git log:*)" "Bash(git rev-parse:*)" "Read" "Write" "Edit" "Glob" "Grep" \
187+
--tools "Bash" "Read" "Glob" "Grep" \
188+
--allowedTools "Bash(pnpm:*)" "Bash(git add:*)" "Bash(git commit:*)" "Bash(git status:*)" "Bash(git diff:*)" "Bash(git log:*)" "Bash(git rev-parse:*)" "Read" "Glob" "Grep" \
189+
--disallowedTools "Agent" "Task" "NotebookEdit" "WebFetch" "WebSearch" "Edit" "Write" "Bash(rm:*)" "Bash(mv:*)" "Bash(curl:*)" "Bash(wget:*)" "Bash(sudo:*)" \
190+
--permission-mode dontAsk \
185191
--model sonnet \
186192
--max-turns 25 \
187193
"$PROMPT_BODY" \

0 commit comments

Comments
 (0)