Skip to content

Commit 0bf9522

Browse files
vintaclaude
andcommitted
chore: add uv supply-chain hardening and enforce locked installs
- Set exclude-newer to 3 days and only-binary/:all: in pyproject.toml to limit dependency freshness window and block source builds - Switch uv sync to --locked in Makefile, ci.yml, and deploy-website.yml to enforce the lockfile rather than re-resolving on each install - Regenerate uv.lock with exclude-newer snapshot recorded Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 99d883c commit 0bf9522

5 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
enable-cache: true
2525

2626
- name: Install dependencies
27-
run: uv sync --group build
27+
run: uv sync --group build --locked
2828

2929
- name: Run tests
3030
run: make test

.github/workflows/deploy-website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
enable-cache: true
3232

3333
- name: Install dependencies
34-
run: uv sync --group build
34+
run: uv sync --group build --locked
3535

3636
- name: Run tests
3737
if: github.event_name == 'schedule'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export
33

44
install:
5-
uv sync
5+
uv sync --locked
66

77
fetch_github_stars:
88
uv run python website/fetch_github_stars.py

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,10 @@ pythonpath = ["website"]
2929

3030
[tool.ruff]
3131
line-length = 200
32+
33+
[tool.uv]
34+
exclude-newer = "3 days"
35+
no-build = true
36+
37+
[tool.uv.pip]
38+
only-binary = [":all:"]

uv.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)