SIGN IN SIGN UP

Block auto-approved file writes with literal tilde (#316311)

Add ~ to the variable/sub-command detection regex in commandLineFileWriteAnalyzer so paths like ~/foo that the shell will expand are not auto-approved based on a static path that does not match what bash will open.

Co-authored-by: Megan Rogge <meganrogge@Megans-MacBook-Pro.local>
M
Megan Rogge committed
d3c012657ea7ecfadae887fd1b38a0458a9c665a
Parent: 130f343
Committed by GitHub <noreply@github.com> on 5/13/2026, 10:27:54 PM