Skip to content

ci: audit the Python and npm lock files for known vulnerabilities - #375

Draft
ffroliva wants to merge 14 commits into
mainfrom
ci/0.11.0-t0.4-dependency-audit
Draft

ffroliva wants to merge 14 commits into
mainfrom
ci/0.11.0-t0.4-dependency-audit

Conversation

@ffroliva

@ffroliva ffroliva commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Summary

Task 0.4 of the 0.11.0 plan (#367): audit the Python and npm lock files for known vulnerabilities, and record why OWASP
Dependency-Check is not adopted.

  • .github/workflows/security-audit.yml: a dependencies job runs on the weekly schedule, on manual dispatch and on
    pull requests that change uv.lock, ui/package-lock.json or website/requirements.txt. It exports the frozen lock
    (uv export --frozen --all-extras --all-groups --no-emit-project) and audits it with a pinned pip-audit
    (--no-deps --disable-pip, so nothing is resolved or installed), audits website/requirements.txt the same way, and
    runs npm audit --audit-level=high in ui/. The job has contents: read only. The workflow audit (zizmor) stays
    off pull request runs: it uploads SARIF, which needs security-events: write.
  • docs/decisions/004-dependency-audit-tooling.md (new, indexed in docs/decisions/README.md and in the bundled
    sharpit docs catalogue): Dependency-Check has no uv.lock analyzer, and its Python analyzers are experimental;
    coverage comes from pip-audit, npm audit, the CodeQL extended suite and zizmor.
  • tests/test_ci_layout.py: the triggers, commands and job conditions are pinned.

Running the audits on the current locks reports no known vulnerabilities (Python lock, website requirements, npm lock),
so no dependency bump or ignore is needed.

This pull request is stacked on the 0.11.0 integration branch (#368 to #373); review the last two commits.

Red evidence

Change or finding Test Red before the change
lock-file audit job required tests/test_ci_layout.py::test_dependency_audit_covers_the_python_and_npm_locks RED (assertion under tests/): assert ' pull_request:' in trigger
review: the workflow audit also ran on lock-file pull requests tests/test_ci_layout.py::test_zizmor_audit_does_not_run_on_pull_requests RED (assertion under tests/)

Verification

uvx --from actionlint-py==1.7.12.25 actionlint (clean); uvx zizmor@1.32.0 --offline --min-severity low .github/workflows (no findings); uv run ruff check, uv run ruff format --check, uv run pyright (0 errors);
uv run pytest -q -n 4 tests/test_ci_layout.py tests/docs.

Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
… file

Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
…e protocol

Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>

This branch has not been deployed

No deployments
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