Skip to content

Commit e7d051b

Browse files
committed
build: add cooldown to 4 days to enhance security control
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.
1 parent 345bbd6 commit e7d051b

2 files changed

Lines changed: 488 additions & 439 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ version_provider = "uv"
147147
version_scheme = "pep440"
148148
annotated_tag = true
149149

150+
[tool.uv.pip]
151+
# Synchroonize with scripts/ci/prek/upgrade_important_versions.py
152+
exclude-newer = "4 days"
153+
150154
[tool.uv.build-backend]
151155
module-name = "commitizen"
152156
module-root = ""

0 commit comments

Comments
 (0)