Skip to content

ci: add --disable-pip --no-deps --skip-editable to pip-audit - #19

Merged
griase94 merged 1 commit into
developfrom
ci/audit-pip-audit-flags
Apr 28, 2026
Merged

ci: add --disable-pip --no-deps --skip-editable to pip-audit#19
griase94 merged 1 commit into
developfrom
ci/audit-pip-audit-flags

Conversation

@griase94

Copy link
Copy Markdown
Collaborator

Summary

The release-on-tag workflow runs on the hetzner runner image, which does not ship python3.12-venv. Without --disable-pip, pip-audit falls back to a pip-based path that tries to spin up an internal venv to resolve the requirements file, and crashes with:

The virtual environment was not created successfully because ensurepip is not available.
On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.
    apt install python3.12-venv

The CI workflow runs on ubuntu-latest (which has venv installed), so it never hit this. Adding the flags so the audit works on every runner — the exported requirements are already pinned with hashes, so pip-audit doesn't need to resolve anything; it just looks each package up in the OSV database.

Same flags the worker SDK already uses for the same reason.

Test plan

  • make audit runs locally → No known vulnerabilities found
  • After merge: re-tag v1.4.0 (or bump to v1.4.1) and the release workflow's audit step passes

The release-on-tag workflow runs on the hetzner runner image, which does not ship python3.12-venv. Without --disable-pip, pip-audit tries to spin up an internal venv to resolve the requirements file and crashes with: 'The virtual environment was not created successfully because ensurepip is not available.' The CI workflow runs on ubuntu-latest (which has venv) so it never hit this. Adding the flags so the audit works on every runner — the exported requirements are already pinned, so pip-audit doesn't need to resolve anything; it just looks each package up in the OSV database. Same flags the worker SDK already uses for the same reason.
@griase94 griase94 added the pr-bugfix PR introduces a bugfix label Apr 28, 2026
@griase94
griase94 requested a review from leandrolerena April 28, 2026 14:48
@griase94
griase94 merged commit 0a8e386 into develop Apr 28, 2026
4 of 5 checks passed
@griase94
griase94 deleted the ci/audit-pip-audit-flags branch April 28, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix PR introduces a bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant