ci: use pip-audit --local to avoid internal venv ensurepip failure
Lint / Shell (shellcheck) (push) Successful in 11s
Lint / JS (eslint) (push) Successful in 8s
Lint / Python (ruff) (push) Successful in 7s
Lint / Python deps (pip-audit) (push) Failing after 47s
Lint / Secret scan (gitleaks) (push) Successful in 5s

The standalone Python 3.10 binary's venv ensurepip step exits 127.
Workaround: install requirements + pip-audit into the same env,
then audit with --local (no internal venv creation).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-21 14:03:19 -04:00
parent 353695f8c3
commit f6ce517a69
+5 -2
View File
@@ -60,10 +60,13 @@ jobs:
# Debian Bullseye only ships Python 3.9; use a prebuilt standalone binary # Debian Bullseye only ships Python 3.9; use a prebuilt standalone binary
curl -sSL "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.10.15+20241002-x86_64-unknown-linux-gnu-install_only.tar.gz" \ curl -sSL "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.10.15+20241002-x86_64-unknown-linux-gnu-install_only.tar.gz" \
| tar -xz -C /opt | tar -xz -C /opt
/opt/python/bin/pip install pip-audit # Install pip-audit + the bot's requirements into the same env.
# Using --local avoids pip-audit creating an internal venv (which fails
# with ensurepip exit 127 on this standalone build).
/opt/python/bin/pip install pip-audit -r matrixbot/requirements.txt
- name: Audit matrixbot dependencies - name: Audit matrixbot dependencies
run: /opt/python/bin/pip-audit -r matrixbot/requirements.txt run: /opt/python/bin/pip-audit --local
secret-scan: secret-scan:
name: Secret scan (gitleaks) name: Secret scan (gitleaks)