audit Module (stx.audit)

SciTeX Audit Module

Unified security scanning by orchestrating bandit (Python), shellcheck (shell), pip-audit (deps), and GitHub alerts.

Usage:

from scitex_audit import audit

results = audit(“.”) results = audit(“.”, checks=[“python”, “shell”])

scitex.audit.audit(path='.', checks=None, output_file=None)[source]

Run security audit across multiple tools.

Parameters:
  • path (str) – Directory to scan. Defaults to current directory.

  • checks (list[str] | None) – Which checks to run. Options: “python”, “shell”, “deps”, “github”. None means run all available checks.

  • output_file (str | None) – If given, write JSON report to this path.

Returns:

Keys are check names, values have {status, findings, summary}.

Return type:

dict