-
v0.1.0 Initial Release
StableSome checks failedRelease / release (push) Failing after 12sreleased this
2026-01-29 21:28:26 +00:00 | 0 commits to main since this releaseShell Safe Validator v0.1.0
A CLI tool that validates shell scripts and commands for safety issues before execution.
Features
- Pattern-based dangerous command detection (rm -rf with variables, eval, sudo without path)
- Security vulnerability scanning (unquoted variables, command injection, path traversal)
- Best practices validation (set -e, set -u, error handling)
- Interactive safe-mode execution with confirmation prompts
- Configurable rule customization via YAML
Installation
pip install shell-safe-validatorUsage
shell-safe-validator check "rm -rf $TARGET" shell-safe-validator validate script.sh shell-safe-validator safe-exec "mkdir -p /tmp/test"Files
- Source code in
src/ - Tests in
tests/ - Default rules in
config/default_rules.yaml
Downloads