Skip to content

Release v7.170.7

Choose a tag to compare

@github-actions github-actions released this 18 Nov 23:37
3efe8e1

Summary

The shell-writes guard now inspects destructive deletes more precisely: it blocks deletes that reach protected directories through common command runners, and stops flagging harmless commands. Run cratis ai update to get the updated hooks.

Changed

  • The shell-writes guard treats heredoc bodies, comments, commit messages and arguments to other programs as data, so commands that only mention a delete are no longer blocked. The hooks README lists the command runners the guard inspects and what it does not inspect.

Security

  • The shell-writes guard blocks recursive deletes of protected directories (the repository root, its ancestors and the home directory) when they arrive through command runners such as sudo, env (including env -S), nice, timeout, nohup, xargs, find -exec, git -C or a shell reading commands from a pipe, here-string or heredoc. Run cratis ai update to apply it.