CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/sast-rules-mini

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.

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

sast_scan.pyscripts/

#!/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())

SKILL.md

tile.json