Scan Python code for ten AST security issues: eval/exec, shell=True, pickle, unsafe yaml, weak hashes, disabled TLS, hardcoded secrets, SQL built from strings, mktemp, debug=True. Use when the user asks for a security scan or SARIF.
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
#!/usr/bin/env python3
"""Run the bundled sast-rules-mini scanner without installing anything.
Usage: python3 scripts/sast_scan.py [PATH ...] [--format text|sarif] [--output FILE]
[--min-severity low|medium|high]
Exit codes: 0 no findings, 1 findings, 2 usage or I/O error. Standard library only.
"""
from __future__ import annotations
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent))
from sast_rules_mini.__main__ import main
if __name__ == "__main__":
sys.exit(main())