Conversation
poetry install without --only main also installs the dev group, so the runtime venv shipped pytest, mypy, pylint, ruff, pre-commit and their dependencies, virtualenv among them, which image scanners flag. None of it runs in the container: CI runs the checks on the runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
4 of 5 tasks
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.
The Dockerfile runs
poetry install --no-root, which also installs the dev group. Every published image ships pytest, mypy, pylint, ruff, pre-commit and their dependencies in/usr/src/app/.venv, 31 packages that never run in the container. This adds--only main.Why
virtualenv21.3.1 (pulled in by pre-commit) insaicismartapi/saic-python-mqtt-gateway:0.12.0for CVE-2026-102925, CVE-2026-102930 and CVE-2026-102937 (high) and CVE-2026-102938 (medium). Anything built on the image inherits those alerts.build_and_test_python.yml), not inside the image.Runtime versions don't change:
--only maininstalls from the samepoetry.lock.Testing
On
developwith Poetry 2.3.2 and Python 3.14:poetry install --no-root --only maininstalls the 17 packages of the main group and nothing else.python -c "import main"fromsrc/succeeds against that venv.main.pypulls in every module exceptlog_config, which only uses the standard library.I haven't built the Docker image itself, and PR CI only runs the Python tests, so the image build is still untested.
🤖 Generated with Claude Code