Skip to content

fix(ci): scope pip-audit to shipped deps#42

Merged
quantifylabs merged 2 commits into
mainfrom
fix/scope-pip-audit-ci
Jun 3, 2026
Merged

fix(ci): scope pip-audit to shipped deps#42
quantifylabs merged 2 commits into
mainfrom
fix/scope-pip-audit-ci

Conversation

@quantifylabs
Copy link
Copy Markdown
Owner

Addresses Codex review on PR #41: the no-argument pip_audit audited the entire runner environment including pip-audit's own dependencies, making the gate broader than the shipped dependency surface it claims to enforce. Scopes the audit to server/requirements.txt, which audits clean locally (No known vulnerabilities found).

Addresses Codex review on PR #41: the no-argument pip_audit audited the entire runner environment including pip-audit's own dependencies, broader than the shipped dependency surface the gate claims to enforce.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5f1231d7a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/pip-audit.yml Outdated
run: |
pip install -e ".[server]"
python -m pip_audit
python -m pip_audit -r server/requirements.txt
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore auditing of installed shipped deps

This command now audits server/requirements.txt a second time instead of the environment populated by pip install -e ".[server]"; pip-audit documents -r REQUIREMENT as auditing the given requirements file, so the installed pyproject dependency surface is no longer checked. In this repo that skips shipped deps that are only in pyproject.toml (for example typer, rich, pyyaml, textual, mcp, and alembic), allowing vulnerabilities in those packages to pass the blocking workflow despite the step/comment saying pyproject core + [server] are covered.

Useful? React with 👍 / 👎.

Addresses second Codex review on PR #42: -r server/requirements.txt skipped pyproject deps (typer, rich, pyyaml, textual, mcp, alembic). pipx run pip-audit audits the installed .[server] environment (pyproject core + extra + requirements) while keeping pip-audit's own deps isolated. Confirmed clean locally.
@quantifylabs quantifylabs merged commit fd93c36 into main Jun 3, 2026
4 checks passed
@quantifylabs quantifylabs deleted the fix/scope-pip-audit-ci branch June 3, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants