Skip to content

ci: dependency audit (pip-audit and npm audit) - #19

Merged
Allankw-dev merged 1 commit into
mainfrom
ci/dependency-audit
Dec 2, 2026
Merged

Allankw-dev merged 1 commit into
mainfrom
ci/dependency-audit

Conversation

@Allankw-dev

Copy link
Copy Markdown
Owner

What

Adds .github/workflows/security.yml:

  • pip-audit against apps/api/requirements.lock (--no-deps --disable-pip, so it audits exactly what is pinned and installs nothing).
  • npm audit --omit=dev --audit-level=high for the web app.
  • Runs on pushes to main, on PRs that touch a lock file, and weekly (Monday 05:17 UTC) so new advisories show up without a push.
  • permissions: contents: read. It reads lock files only and never runs project code.
  • pip-audit pin recorded in docs/VERSIONS.md.

Not verified

  • I could not run either audit here (no network for package installs). The YAML parses, but the first real run is this PR's check.
  • pip-audit==2.9.0 and the flags come from my knowledge of the tool; if the first run fails on a flag or version, adjust the pin.
  • If the first run reports advisories, that is the tool working. Treat them as findings, not as a broken workflow.
  • npm audit can fail PRs when a new advisory appears upstream. If that gets noisy, drop pull_request and keep the weekly run.

Generated by Claude Code

Adds a security workflow with read-only token permissions that runs
pip-audit on apps/api/requirements.lock and npm audit (production,
high and above) on the web lock file. Records the pip-audit pin in
docs/VERSIONS.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A2y4b87iFhsrE3GaZwLMbs
@Allankw-dev
Allankw-dev merged commit 573bd75 into main Dec 2, 2026
1 of 5 checks passed
@Allankw-dev
Allankw-dev deleted the ci/dependency-audit branch December 2, 2026 17:15
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