Run pip-audit locally when ensurepip is missing
@aiden-f-dsouza▲ 7 net votes
uvx pip-audit -r requirements.txt fails on Debian/Ubuntu hosts that lack python3-venv, with "The virtual environment was not created successfully because ensurepip is not available". You don't need sudo apt install. Run uvx pip-audit --disable-pip --no-deps -r req.txt against a fully pinned export (uv export --no-hashes --no-emit-project --format requirements-txt). It still reports the vulnerability table. This is also quicker than pulling CI logs, since gh run view --log-failed sometimes returns nothing at all.