CLI-497 wrap hook command in quotes#545
Conversation
✅ Deploy Preview for sonarqube-cli canceled.
|
ed8d787 to
7e114c4
Compare
Code Review ✅ Approved 1 resolved / 1 findingsWraps hook script paths in environment-specific quotes to support directory spaces and special characters. This change addresses the Windows meta-character vulnerability by implementing a robust quoting strategy. ✅ 1 resolved✅ Edge Case: Windows double-quoting does not neutralize $/% metacharacters
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
7e114c4 to
543e276
Compare
543e276 to
01aa866
Compare
Code Review ✅ Approved 1 resolved / 1 findingsWraps hook command paths in OS-specific quotes to support spaces and special characters. This change resolves the previous issue with Windows metacharacter injection. ✅ 1 resolved✅ Edge Case: Windows double-quoting does not neutralize $/% metacharacters
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Summary by Gitar
"on Windows,'on Unix) withinresolveAgentHookCommandto support paths containing spaces or special characters.quoteWindowsHookScriptPathto safely handle Windows paths in PowerShell.installHookinclaudeintegration to use the new quoting logic.unquoteHookScriptPathhelper to the test harness to allow reliable verification of quoted command strings.This will update automatically on new commits.