ci: migrate dependency security scan from Safety to pip-audit - #252
Open
mikelane wants to merge 5 commits into
Open
ci: migrate dependency security scan from Safety to pip-audit#252mikelane wants to merge 5 commits into
mikelane wants to merge 5 commits into
Conversation
- Replace deprecated safety check with pip-audit==2.10.1 - Use uv export --no-dev for production and --all-groups for dev - Keep production scan as hard gate; dev scan reports without blocking - Rename artifact from safety-report to security-report - Update CHANGELOG, SECURITY.md, and deployment docs
Avoid uv pip install --system, which fails on PEP 668 externally managed environments. Sync deployment.md to describe pip-audit instead of Safety check. Add workflow consistency tests to prevent regressions.
Add adversarial QA tests requiring uv lock validation and --with pip-audit in documentation examples so manual audit instructions work on a clean clone.
…tests Ensure SBOM generation docs also validate uv.lock and use uv --with for non-project tools. Add adversarial QA tests verifying lock order, version pinning, hard/soft gates, failure masking, and artifact glob matching.
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #252 +/- ##
=======================================
Coverage 98.82% 98.82%
=======================================
Files 50 50
Lines 3074 3074
=======================================
Hits 3038 3038
Misses 36 36
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate the Dependency Security Scan workflow from the deprecated
safety checkcommand to the auth-freepip-audit==2.10.1scanner.Changes
.github/workflows/security.yml: replace Safety CLI with pinnedpip-audit; run scans viauv run --with pip-audit==2.10.1; adduv lock --checkand--lockedexport so the scan reflects the committeduv.lock; keep the production scan as a hard gate while the development scan reports without blocking; rename artifact tosecurity-report.docs/deployment.mdandSECURITY.md: update manual audit examples, supported versions, and CI snippets to referencepip-audit.CHANGELOG.md: record the migration under Migrate Dependency Security Scan from deprecated safety check to auth-free scanner #251 and clarify the fix: update vulnerable transitive deps and modernize security scan workflow #248 entry.tests/test_security_workflow_*_feature.py: add workflow-consistency and adversarial tests covering lock validation, version pinning, hard/soft gates, artifact upload permissions, and failure masking.Testing
pytest -n auto -q --ignore=tests/bddcommand.Closes #251
🤖 Generated with Claude Code