• v0.1.0 2b8aae94f1

    v0.1.0 Initial Release
    Some checks failed
    Release / release (push) Failing after 12s
    Stable

    7000pctAUTO released this 2026-01-29 21:28:26 +00:00 | 0 commits to main since this release

    Shell 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-validator
    

    Usage

    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