Python: pin transitive litellm to a safe wheel#4880
Closed
eavanvalkenburg wants to merge 2 commits intomicrosoft:mainfrom
Closed
Python: pin transitive litellm to a safe wheel#4880eavanvalkenburg wants to merge 2 commits intomicrosoft:mainfrom
eavanvalkenburg wants to merge 2 commits intomicrosoft:mainfrom
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Pins the Python workspace’s transitive litellm resolution to a specific, known-good wheel to prevent compromised releases from being selected during dependency resolution.
Changes:
- Added a workspace-level UV constraint to force
litellm==1.82.1(without making it a direct dependency). - Overrode
litellm’s source to a specific PyPI wheel URL viatool.uv.sources. - Refreshed
python/uv.lockso the lock records the URL-based source forlitellm.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| python/pyproject.toml | Adds UV constraint + source override to pin litellm to a specific safe wheel artifact. |
| python/uv.lock | Records the resolved litellm package source as the pinned wheel URL and adds the corresponding constraint entry. |
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.
Motivation and Context
Recent compromised
litellmreleases could be pulled in transitively by the Python workspace. This change makes the workspace resolve a known-goodlitellmwheel instead, so those compromised releases are never selected while the existing transitive dependency paths continue to work.Description
This change updates the Python workspace dependency configuration to:
litellmresolution to1.82.1via rootuvconstraintslitellmfrom the known-good wheel URL intool.uv.sourcespython/uv.lockso the lockfile records that exact safe sourceThis keeps
litellmindirect, but makes the selected artifact deterministic and safe.Contribution Checklist