Skip to content

fix: suppress bandit B404/B603/B607 in tpm.py; sort cli.py imports - #129

Merged
imran-siddique merged 2 commits into
mainfrom
fix/ci-main
Jun 6, 2026
Merged

fix: suppress bandit B404/B603/B607 in tpm.py; sort cli.py imports#129
imran-siddique merged 2 commits into
mainfrom
fix/ci-main

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

  • tpm.py: add # nosec B404 on import subprocess and # nosec B603, B607 on two subprocess.run() calls — these invoke the system tpm2_pcrread binary with a hardcoded arg list, no user input
  • cli.py: reorder imports inside start() so stdlib (uuid) precedes third-party (uvicorn) — fixes ruff I001

Why merged without this fix

PRs #123 and #127 were merged while CI was failing. This PR restores green CI on main.

@imran-siddique
imran-siddique merged commit d4d6615 into main Jun 6, 2026
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant