You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dangerous_patterns= [
# Commands that are generally unsafer"\brm\b", # rm commandr"\bgit\s+push\b", # git push commandr"\bsudo\b", # sudo commandr"\bmv\b", # mv commandr"\bchmod\b", # chmod commandr"\bchown\b", # chown commandr"\bmkfs\b", # mkfs commandr"\bsystemctl\b", # systemctl commandr"\breboot\b", # reboot commandr"\bshutdown\b", # shutdown command# Target files that are unsafe
rm and mv may be ok in many cases as the user has specifically asked goose to do some work and it can be a little over eager. Could we make it smarter:
have a global "go ahead" say when running "goose run"
if it is running commands in current dir and there file isn't unstaged (ie git has it backed up) then it may be ok to go ahead within that context of current project?
The text was updated successfully, but these errors were encountered:
@baxen it may be time to bring back the accelerator check: only in this case use it to decide based on system if it should continue as lower risk than on face of it?
rm and mv may be ok in many cases as the user has specifically asked goose to do some work and it can be a little over eager. Could we make it smarter:
The text was updated successfully, but these errors were encountered: