Commit 0f17dd1
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
184 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
| |||
0 commit comments