Commit bc37968
clap [bot]
fix: close git force-push bypass vectors in openclaw.yaml
Two bypass vectors caught in Opus code review:
1. 'git push origin main -f' (trailing -f with no space after) was not caught
by the command_not_matches pattern 'git push *-f *'
2. Compound commands ('echo x && git push --force') bypass command_not_matches
exclusions which only check the raw/full command
Fix: add dedicated block-force-push policy using command_matches patterns
prefixed with '*' to catch compound command segments. Add '-f' end-of-string
pattern for trailing flag variant. Update tests: 39/39 pass, 45/45 e2e.1 parent e465ea2 commit bc37968
2 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| |||
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
299 | 321 | | |
300 | 322 | | |
301 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments