Skip to content

v0.2.0 — Security Rules + SARIF

Choose a tag to compare

@themohitkhare themohitkhare released this 22 Mar 14:47
· 10 commits to main since this release

New Security Rules

  • no-os-system — os.system() is vulnerable to shell injection
  • no-subprocess-shell — subprocess.run(shell=True) is a security risk
  • no-tempfile-race — tempfile.mktemp() is deprecated and vulnerable to race conditions

SARIF Output

New --sarif flag outputs findings in SARIF 2.1.0 format for GitHub Code Scanning:

pycodegate . --sarif > results.sarif

Upload to GitHub Actions with github/codeql-action/upload-sarif@v3 and get findings highlighted directly in your PR review UI.

Fixes

  • CI workflow updated to use pycodegate command (was still referencing old py-gate name)
  • 159 tests passing, self-score 100/100