thadiust/Bandit SAST scan

Run Bandit static analysis on Python source

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
python_versionPython version to useno3.11
bandit_versionExact bandit version to installno1.9.4
working_directoryDirectory to run the scan from (repo root relative)no.
targetsSpace-separated paths to scan (relative to working_directory), passed to bandit -rno.
bandit_configOptional path to bandit config file (relative to working_directory)no""
excludeOptional comma-separated paths to exclude (Bandit --exclude)no""
minimum_severityMinimum issue severity to report (all, low, medium, high)noall
minimum_confidenceMinimum confidence to report (all, low, medium, high)noall
report_formatHuman-readable report format when not using JSON-only output (txt, json, yaml, csv)notxt
report_fileOptional path to write the human-readable report (relative to working_directory)no""
fail_on_findingsFail the action when Bandit reports one or more findingsnotrue
write_sarifWrite a SARIF report to sarif_filename (for GitHub Code Scanning upload; second Bandit pass)nofalse
sarif_filenameSARIF file path relative to working_directory (used when write_sarif is true)nobandit-results.sarif
namedescription
issue_countNumber of findings reported by Bandit
scan_statusFinal scan status (clean, findings_found, scanner_error)
sarif_pathRepo-relative path to the SARIF report when write_sarif is true (empty otherwise)