The Python SAST job ran pipx run --spec bandit[sarif], which resolves the analyser from PyPI at run time. Two runs of the same commit could therefore report different findings after an upstream release, and a compromised release would execute inside a job that holds security-events: write. Pin the exact version (1.9.4, the current release) with a comment saying to bump it in a reviewed PR.
Add tests/test_security_workflow.py, which fails whenever a workflow installs a tool through pipx --spec without an exact version pin; it reports security.yml: bandit[sarif] on main and passes with the change.