chore: harden uv dependency resolution#3014
Merged
Merged
Conversation
sdcoffey
approved these changes
Apr 23, 2026
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.
This pull request hardens package-manager dependency resolution for this public repository. It adds uv age-gate and safe index policy, pins GitHub Actions setup for uv to an immutable action release, and explicitly installs uv 0.11.7 in CI so the relative
exclude-newer = "7 days"policy is supported.What changed
[tool.uv]and[tool.uv.pip]policy withexclude-newer = "7 days"andindex-strategy = "first-index".uv.lockso the lock records the resolved cutoff for the configured 7-day policy.astral-sh/setup-uvto an immutablesetup-uv v8.1.0commit and document the action and uv package versions inline.uv pip install --systemusing age-gate and safe index controls.Why
This reduces package-compromise and dependency-confusion risk for CI, local lock resolution, and the tutorial container build without changing the SDK public API.
Verification
uv buildexamples/sandbox/tutorials/Dockerfilemake typecheckmake testsNote: the full helper script that runs typecheck and tests concurrently reproduced an existing timing-sensitive test failure on the unchanged baseline worktree. Running the project checks sequentially passed.