Skip to content

ci: add 2-day package install cooldown (supply-chain guard)#825

Merged
tchaton merged 1 commit into
Lightning-AI:mainfrom
bhimrazy:chore/uv-exclude-newer-supply-chain-guard
May 29, 2026
Merged

ci: add 2-day package install cooldown (supply-chain guard)#825
tchaton merged 1 commit into
Lightning-AI:mainfrom
bhimrazy:chore/uv-exclude-newer-supply-chain-guard

Conversation

@bhimrazy

Copy link
Copy Markdown
Collaborator

What does this PR do?

Adds a CI-only supply-chain guard: the resolver refuses any PyPI release published within the last 2 days, so typosquats and malicious uploads that get yanked within ~24h never land in our CI environment.

Sets UV_EXCLUDE_NEWER: "2 days" on the uv-based ci-testing workflow (the only uv-based workflow in this repo). pip-based workflows are out of scope for now.

Follows the same pattern as pytorch-lightning#21722.

Ref: https://docs.astral.sh/uv/reference/settings/#exclude-newer

@codecov-commenter

codecov-commenter commented May 26, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81%. Comparing base (5213544) to head (d991e84).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #825   +/-   ##
===================================
  Coverage    81%    81%           
===================================
  Files        54     54           
  Lines      7617   7617           
===================================
+ Hits       6144   6147    +3     
+ Misses     1473   1470    -3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tchaton
tchaton merged commit b6eaf94 into Lightning-AI:main May 29, 2026
47 of 49 checks passed
@bhimrazy
bhimrazy deleted the chore/uv-exclude-newer-supply-chain-guard branch May 29, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants