You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test tools (pytest) are installed in the production image: move them to dev requirements #231
So the production image ships pytest and its dependencies (pluggy, iniconfig and so on). That means more attack surface, more CVEs to triage in Trivy and pip-audit, and a bigger image.
Fix
Move them to requirements-dev.txt (which exists) and/or [project.optional-dependencies] dev in pyproject.toml.
Regenerate the locks with scripts/lock.sh.
CI jobs that run tests install -r requirements.txt -r requirements-dev.txt, and the new Dependency Lock job does the same for its test step.
Check: the built image has no pytest (docker run … python -c "import pytest" fails).
Activity