Skip to content

ci: add pip-audit security scan - #46

Merged
tonyandrewmeyer merged 2 commits into
canonical:masterfrom
tonyandrewmeyer:add-security-scan-sbom
Jun 1, 2026
Merged

ci: add pip-audit security scan#46
tonyandrewmeyer merged 2 commits into
canonical:masterfrom
tonyandrewmeyer:add-security-scan-sbom

Conversation

@tonyandrewmeyer

@tonyandrewmeyer tonyandrewmeyer commented May 30, 2026

Copy link
Copy Markdown
Contributor

Extend the security posture of the repo:

  • Adds security.yaml workflow running pip-audit on push and PRs to scan the resolved dependency environment for known CVEs (this compliments the scheduled dependabot scans, and in particular will flag PRs that introduce security issues by adding or updating dependencies).

These are instead of the full secscan process, since this is a tutorial piece rather than a product we provide.

Adds a pip-audit workflow (runs on push/PR) to scan the resolved
dependency environment for known CVEs. Updates build workflow to add
--sbom=true --provenance=true to docker buildx, generating OCI SBOM
and provenance attestations attached to the published image. Also
brings build workflow up to date with canonical upstream (SHA-pinned
docker actions at v4, explicit permissions).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread .github/workflows/build.yaml Outdated
Comment thread .github/workflows/security.yaml Outdated
Comment thread .github/workflows/security.yaml Outdated
- Drop --sbom/--provenance from docker build (next release will be
  a rock; SBOM approach to be revisited then)
- Replace uv venv + uv pip install with uv sync --frozen
- Pin pip-audit in pyproject.toml dev deps and use uv run pip-audit
  instead of uvx, so the version is locked and auditable

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tonyandrewmeyer
tonyandrewmeyer requested a review from dwilding June 1, 2026 21:51
@tonyandrewmeyer tonyandrewmeyer changed the title ci: add pip-audit security scan and Docker SBOM generation ci: add pip-audit security scan Jun 1, 2026
@tonyandrewmeyer
tonyandrewmeyer merged commit dee42d8 into canonical:master Jun 1, 2026
5 checks passed
@tonyandrewmeyer
tonyandrewmeyer deleted the add-security-scan-sbom branch June 1, 2026 23:26
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