Repository navigation
fix(guardrails): treat the heredoc body of git commit -F - and git tag -F - as data in block-root-delete-target - #10047
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
|
claude-security-review reviewed No security issues found in this pull request. critical-findings: 0 What changed. Why I judged the relaxation safe.
I found no bypass in the changed lines. A body reaches the inert path only when git consumes it as a message. Manifests and trusted paths: None of the four changed files is a plugin manifest. None matches the trusted-path globs. The skip-gate "no security surface" rule did not apply because this change relaxes a guard hook. I read the whole change for that reason. Cost: None. The change adds no billed resource or paid setting, and spends no extra prepaid credit. Not done: I could not run |
|
claude-review reviewed No findings. I read the diff (4 files) and the PR context. I traced the new Code trace
Closing issue #7379 criteria
Other
|
|
The unattended merge path armed native auto-merge at head |
|
Unattended merge: native auto-merge leaves this pull request unarmed at head |
Closes #7379
Summary
Opened by the work-resolve-issue lane. The run's own summary:
Not verified
gitprefix, so the body was scanned and its backticked rm blocked. The PR body asks the human mcatorghbodies are skipped. It also adds the--stop and the quote/backslashFix
gitbranch: word 1 must becommitortag, and the later words must hold-Ffollowed by-, before any--, in a prefix with no quote or backslash. Its comment keeps the!shreason for every other git word and saygit commit -F -,git tag -F - v1.0.0, each body holding a backtickedrm -rf /) and 10 new block cases (git -c alias.x=y commit -F -,git -C /tmp commit -F -, unknown aliasgit ci -F -,git notes add -F -cat,gh,git commit -F -orgit tag -F -line, instead of onlycatorgh.Verification
The runner ran each check from the base copy against b1391dd:
The run reports:
-F -after--or inside quotes matched though git reads those words as paths) and two nits (README reflow, test-comment accuracy); all three fixed. On reading the code, the guard scans only a quoted bLeft out: the items under Not verified.
Related
#7379