Repository navigation
Pin Python to 3.14 and remove bundled pip wheel from image - #470
Conversation
- dependabot: ignore python >=3.15 for the docker ecosystem - pyproject: python = ">=3.14,<3.15"; lock content-hash updated only - Dockerfile stays on python:3.14.10-slim-trixie (latest 3.14 tag) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wheel vendors msgpack 1.1.2, urllib3 2.7.0 and setuptools 70.3.0, which carry HIGH CVEs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🟢 All clear: Claude of Duty review passedMission: Review the code. Protect the branch. Deploy the future. Tip No findings. This review found no reason to block. Nothing to do for this review.
Run 45215336673, attempt 1 for head Claude of Duty never approves a PR. A human reviewer gives the final approval. 📋 Full review record: reasons, checks, signals, finding details, model summaries, token usageReviewed snapshot
Reasons the gate failed None. No reason applies. Checks (code, no model)
Signals (context only, never block)
Dependency changes None. Finding details
Blocking is decided by code from category and severity, never by the model. A finding in a blocking category blocks only at high or critical severity. No findings. All three passes completed. Model summaries
Token usage
|
Same form as OperationCode/back-end PR #416. Patch releases still flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Feedback from the same fix in back-end (OperationCode/back-end#416). We checked our copy of this
Already good here: the docker For reference, back-end's resulting file: version: 2
updates:
# Poetry projects use the "pip" ecosystem; Dependabot reads pyproject.toml and poetry.lock
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
cooldown:
default-days: 7
groups:
# One PR for routine bumps; majors stay separate so they get a real review
python-minor-patch:
update-types:
- "minor"
- "patch"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
cooldown:
default-days: 7
groups:
actions:
patterns:
- "*"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
ignore:
# Stay on Python 3.14 until we decide to move; patch bumps only
- dependency-name: "python"
update-types: ["version-update:semver-major", "version-update:semver-minor"] |
- remove labels (none of the named labels exist) and open-pull-requests-limit - add 7-day cooldown to pip and github-actions - group github-actions into one PR; drop redundant pip group patterns - Dockerfile: match python3.* so the wheel removal survives a minor bump Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Applied in d70ccb7:
|
Summary
Keep pybot on Python 3.14 and stop Dependabot from proposing 3.15 (supersedes #469).
.github/dependabot.yml: ignorepythonmajor and minor updates (update-types: version-update:semver-majorandversion-update:semver-minor) for the docker ecosystem, the same form as back-end PR Python 3.14 upgrade #416. 3.14.x patch bumps still come through; bump the minor by hand..github/dependabot.ymlcleanup: removed thelabelsblocks (the named labels do not exist here) andopen-pull-requests-limit(default), added a 7-daycooldownto pip and github-actions, grouped github-actions into one PR, and dropped the redundantpatternsfrom the pip group.pyproject.toml:python = ">=3.14,<3.15"(was^3.14, which allowed 3.15).poetry.lockchanges only the content-hash and python-versions; no package versions changed.docker/Dockerfile: also remove the pip wheel bundled forensurepipin the final stage. It vendors msgpack 1.1.2, urllib3 2.7.0 and setuptools 70.3.0 with known HIGH CVEs. Nothing uses it at runtime (the app runs from/app/.venv).README.md: say 3.14 is required, not "3.14 or greater".The base image stays
python:3.14.10-slim-trixie: that is the latest 3.14 patch on Docker Hub.Why Dependabot kept proposing 3.15
Dependabot's docker ecosystem reads
3.14.10-slim-trixieas a version plus suffix and proposes the highest tag with the same suffix. It has no notion of Python minor lines. Closing a PR only ignores that exact version, so #462 (3.15.0) came back as #469 (3.15.2).Image scan (Trivy 0.67.2)
Trivy 0.58.0 also reports msgpack, urllib3 and setuptools HIGHs from the base image's pip. Those files are already removed in the final stage (
pip uninstall); the old Trivy does not apply that deletion. Trivy 0.67.2 does not report them.Test plan
poetry check --lockimport pybotworks in the image; bundled wheel is gonepoetry.lockpackage changed, so nothing under 72 hours old🤖 Generated with Claude Code