Repository navigation
chore(deps): relax exact pins to patched ranges for consumer security updates - #2881
Merged
Merged
Conversation
… updates Declare >=patched,<next-major ranges for the packages named in #2523 (aiohttp, dynaconf, fastapi, GitPython, starlette, PyJWT, ujson) instead of == pins. This repo's own builds stay fully reproducible via uv.lock — the lockfile's resolved versions are unchanged by this commit — while pip consumers of the pr-agent package can now pull security patches on their own cadence without waiting for a release. Fixes #2523
Contributor
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.
Fixes #2523.
What
Relaxes the exact
==pins for the packages named in the issue to>=<patched>,<next-major>ranges in[project.dependencies]:aiohttp==3.14.3>=3.14.3,<4dynaconf==3.2.13>=3.2.13,<4fastapi==0.141.1>=0.141.1,<1GitPython==3.1.59>=3.1.59,<4starlette==1.6.0>=1.6.0,<2PyJWT==2.13.0>=2.13.0,<3ujson==5.13.0>=5.13.0,<6Every floor is the currently-vetted patched release, so consumers can never resolve below what we ship today — they can only move forward to future patches.
Why now (resolving the reproducibility objection)
The original concern with relaxing pins was reproducibility / supply-chain exposure for our own builds. Since #2509 merged, that concern is handled by
uv.lock: Docker images, CI, anduv syncall install exact locked versions regardless of the declared ranges. The lockfile's resolved versions are unchanged by this PR (theuv.lockdiff touches only the specifier metadata) — repo builds are byte-for-byte the same. The declared ranges only affect pip consumers of the published package, who per the issue are currently forced into security exceptions or forks when CVEs land in these dependencies (e.g. starlette CVE-2025-62727 was unreachable behind the old fastapi cap at any level).Scope
Deliberately limited to the seven packages from #2523. The rest of the dependency list keeps exact pins; if this pattern works out, relaxing further entries can follow the same recipe (bump-and-vet the floor in
uv.lock, declare the range).Verification
uv lockafter the change: resolved versions identical, only specifiers differ.PYTHONPATH=. uv run pytest tests/unittest→ 2624 passed, 1 skipped, 1 xfailed.🤖 Generated with Claude Code