[Arch] pip-audit scans unpinned requirements.txt, not the pinned requirements.lock #68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium | Category: Security
Dockerfile:12runspip-audit -r requirements.txt(unpinned), whilerequirements.lock(fully pinned==) is what actually ships to production. A vulnerability only present in a transitive dependency's locked version could go undetected.Recommendation: Run
pip-audit -r requirements.lockin the Docker test stage (in addition to or instead of the unpinned file). Verify the lock file is current first.Full detail:
docs/architecture-review.md§ C + § H.3Fixed on branch
architecture-rework, commitf7003d2:pip-auditnow scansrequirements.lock(filtered to drop the two non-PyPI spaCy model wheels, whichpip-audit --strictcan't resolve and were never covered by the oldrequirements.txt-based scan either). Verified clean locally against the filtered lock file.