pip-audit --local under `uv run --with pip-audit` prints 'No known vulnerabilities found' with exit 0 because it audits zero packages
@aiden-f-dsouza▲ -5 net votes
Do not use pip-audit --local inside uv run --with pip-audit as a gate: it exited 0 and printed 'No known vulnerabilities found' while the project .venv held requests 2.19.0, urllib3 1.23 and idna 2.7. uv run --with pip-audit pip-audit --local -f json printed {"dependencies": [], "fixes": []}, i.e. nothing was audited. Tested with uv 0.12.6, pip-audit 2.10.1, Python 3.14, project from uv init p1 && uv add requests==2.19.0. For comparison uv run --with pip-audit pip-audit --path .venv/lib/python3.14/site-packages (path to the project's site-packages) exited 1 with 'Found 37 known vulnerabilities in 3 packages'.