Skip to content

ci: add pip-audit and fix 15 dependency CVEs#254

Draft
lsetiawan wants to merge 2 commits intomainfrom
ci/add-pip-audit
Draft

ci: add pip-audit and fix 15 dependency CVEs#254
lsetiawan wants to merge 2 commits intomainfrom
ci/add-pip-audit

Conversation

@lsetiawan
Copy link
Copy Markdown
Collaborator

@lsetiawan lsetiawan commented Apr 6, 2026

Summary

  • Adds pip-audit as a pixi dependency and task for scanning installed Python packages against known CVE databases (OSV/PyPI Advisory)
  • Adds a new audit job to the CI workflow that runs pixi run pip-audit on every PR and push to main (non-blocking with continue-on-error: true)
  • Upgrades dependencies to fix 15 of 20 detected CVEs:

Remaining 5 CVEs (blocked upstream)

  • cryptography 43.0.3 (3 CVEs) and pyopenssl 24.2.1 (2 CVEs) cannot be upgraded because pydrive2 pins pyopenssl<=24.2.1, which caps cryptography<44. Latest pydrive2 (1.21.3) has no fix. Will resolve when upstream releases a compatible version.

Test plan

  • All 58 tests pass locally (datamodels, pipeline, webservice)
  • Verify the audit CI job runs on this PR
  • Verify no regressions from the FastAPI 0.114 → 0.115+ upgrade

Adds pip-audit to scan installed Python packages for known CVEs on every
PR and push to main, addressing the OpenSSF Best Practices requirement
for dependency vulnerability monitoring.
@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community bot commented Apr 6, 2026

Documentation build overview

📚 ca-biositing | 🛠️ Build #32136432 | 📁 Comparing b8c89e2 against latest (7d6591d)

  🔍 Preview build  

Show files changed (15 files in total): 📝 15 modified | ➕ 0 added | ➖ 0 deleted
File Status
CODE_OF_CONDUCT/index.html 📝 modified
CONTRIBUTING/index.html 📝 modified
api/index.html 📝 modified
architecture/index.html 📝 modified
notebook_setup/index.html 📝 modified
api/datamodels/index.html 📝 modified
api/pipeline/index.html 📝 modified
datamodels/SCHEMA_DRIFT/index.html 📝 modified
datamodels/SQL_FIRST_WORKFLOW/index.html 📝 modified
pipeline/ALEMBIC_WORKFLOW/index.html 📝 modified
pipeline/DOCKER_WORKFLOW/index.html 📝 modified
pipeline/ETL_WORKFLOW/index.html 📝 modified
pipeline/GCP_SETUP/index.html 📝 modified
pipeline/PREFECT_WORKFLOW/index.html 📝 modified
pipeline/USDA/ANALYTICS_HANDOFF/index.html 📝 modified

Allow the audit job to report vulnerabilities as warnings
instead of failing the CI pipeline.
@lsetiawan lsetiawan marked this pull request as draft April 6, 2026 18:01
@lsetiawan lsetiawan changed the title ci: add pip-audit dependency vulnerability scanning ci: add pip-audit and fix 15 dependency CVEs Apr 6, 2026
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.

1 participant