Add 4-day dependency cooldown to reduce supply chain risk#1997
Open
Lee-W wants to merge 1 commit into
Open
Conversation
Contributor
🔍 Commitizen bump previewNo commits in this PR are eligible for a version bump. |
Adds `exclude-newer = "4 days"` under `[tool.uv.pip]` in `pyproject.toml`, preventing uv from resolving packages published within the last 4 days. This aligns with the constraint already referenced in `scripts/ci/prek/upgrade_important_versions.py` and reduces exposure to supply chain attacks that exploit newly published malicious package versions. The `uv.lock` is regenerated under this constraint.
0872f91 to
e7d051b
Compare
Contributor
🔍 Commitizen bump previewNo commits in this PR are eligible for a version bump. |
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.
Description
Adds
exclude-newer = "4 days"under[tool.uv.pip]inpyproject.toml, preventing uv from resolving packages published within the last 4 days. This aligns with the constraint already referenced inscripts/ci/prek/upgrade_important_versions.pyand reduces exposure to supply chain attacks that exploit newly published malicious package versions. Theuv.lockis regenerated under this constraint.Checklist
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code following the guidelines
Code Changes
uv run poe alllocally to ensure this change passes linter check and testsDocumentation Changes
N/A — build configuration change only.
Expected Behavior
uvresolves dependencies only from packages published more than 4 days ago.Steps to Test This Pull Request
uv lock— verify it completes without errors and respects theexclude-newerwindow.uv sync— verify the environment resolves cleanly.uv run poe all— verify tests and linter pass.Additional Context
The
uv.lockdiff includes package version bumps (e.g.backrefs6.2 → 7.0,cachetools7.0.5 → 7.1.3,certifiupdate) and a newast-serializeentry — these reflect the lockfile being regenerated under the newexclude-newerconstraint