Skip to content

v0.7.0 — SARIF v2.1.0 Code Scanning, Reusable GitHub Action & re.VERBOSE ReDoS

Choose a tag to compare

@rctruta rctruta released this 03 Dec 02:58
· 12 commits to main since this release
e738292

What's New in v0.7.0

1-Step Composite GitHub Action (action.yml)

Adopt ai-sec-gate in any repository without custom shell glue — with SHA-pinned setup-uv, env:-bound inputs (zero expression injection), and optional SARIF + Shields badge output:

- name: Run ai-sec-gate
  uses: rctruta/ai-sec-gate@<40-char-commit-sha>
  with:
    min-level: "3"  # use "4" with prove: "true" and with-deps-audit: "true"
    sarif-file: ai-sec-gate.sarif

- name: Upload SARIF to GitHub Code Scanning
  if: always()
  uses: github/codeql-action/upload-sarif@<40-char-commit-sha>
  with:
    sarif_file: ai-sec-gate.sarif

SARIF v2.1.0 Output (--sarif / --format sarif)

  • Emits GitHub Code Scanning–compatible SARIF v2.1.0 ($schema, deduplicated rules, security-severity scores 3.0–9.5, POSIX relative paths, and remediation guidance).
  • Works both on stdout (--format sarif) and as a sidecar file (--sarif ai-sec-gate.sarif) alongside human-readable text output.

ReDoS Analyzer Calibration (re.VERBOSE / re.X / (?x))

  • Strips unescaped whitespace and # comments outside character classes when re.VERBOSE, re.X, or inline (?x) is used, eliminating false positives on documented multi-line Python regexes while still catching real CWE-1333 backtracking inside verbose patterns.

Install

uvx ai-sec-gate check . --prove --with-deps-audit --min-level 4