build: add supply chain hardening via uv exclude-newer and pip uploaded-prior-to#3258
Merged
Conversation
- Add uv.toml with exclude-newer = "24 hours" so all uv pip installs skip packages published within the last day - Add Dependabot cooldown (default-days: 1) for github-actions and pip - Upgrade pip before each pip install step and add --uploaded-prior-to=P1D (pip 26.1 relative duration) to all direct pip install commands in CI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
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.
Related Issues
As recent motivation for this PR, there has been a compromised PyPI release of the mistralai package. Only version 2.4.6 was affected. It was uploaded on May 12, 2026 at 00:05 UTC and has been removed on May 12, 2026 at 03:05 UTC according to Mistral AI. Details here.
Given the short time window, uv exclude-newer and pip uploaded-prior-to seem to be a reasonable supply-chain security improvement.
Proposed Changes:
How did you test it?
Ran
uv pip install mistralailocally, which seems to also pick up the root uv.toml.Notes for the reviewer
I am unsure if the changes to root uv.toml are enough or if the setting should be in pyproject.toml of all individual integrations. My understanding is that the uv.toml is enough because this will protect our CI.
I would merge despite failing tests once approved.
Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:.