Skip to content

Commit 56f7a4d

Browse files
kylebarronclaude
andauthored
ci: lock action dependencies with a workflow lockfile (#373)
* ci: install Rust with dtolnay/rust-toolchain@master dtolnay/rust-toolchain force-pushes its `stable` branch every time `master` moves, so a locked `stable` commit drops out of upstream history and the runner rejects it at job start. `master` only fast-forwards, and the `toolchain` input still selects stable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: lock action dependencies with a workflow lockfile Pins every action the workflows use, including transitive ones, to a verified commit in .github/workflows/actions.lock, generated by `gh actions-lock`. Actions runs the locked commit even if a tag moves, and floating tags like `v4` are narrowed to the full release tag they resolve to. A new workflow runs `gh actions-lock --verify` so a stale or incomplete lockfile fails CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c61b3a1 commit 56f7a4d

10 files changed

Lines changed: 242 additions & 55 deletions

File tree

‎.github/workflows/actions.lock‎

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
# This file is machine-generated by `gh actions-lock`.
2+
# Do not edit by hand; run `gh actions-lock` to update.
3+
# Docs: https://gh.io/actions-lockfile
4+
version: 'v0.0.3'
5+
workflows:
6+
'.github/workflows/bench.yml':
7+
- 'actions/checkout@v7.0.1'
8+
- 'codspeedhq/action@v5.6.3'
9+
- 'moonrepo/setup-rust@v1.3.0'
10+
'.github/workflows/conventional-commits.yml':
11+
- 'actions/create-github-app-token@v3.3.0'
12+
- 'ytanikin/pr-conventional-commits@1.5.2'
13+
'.github/workflows/lint.yml':
14+
- 'actions/checkout@v7.0.1'
15+
- 'dtolnay/rust-toolchain@master'
16+
- 'swatinem/rust-cache@v2.9.3'
17+
'.github/workflows/python-docs-publish.yml':
18+
- 'actions/checkout@v7.0.1'
19+
- 'astral-sh/setup-uv@v7.6.0'
20+
- 'dtolnay/rust-toolchain@master'
21+
- 'swatinem/rust-cache@v2.9.3'
22+
'.github/workflows/python-wheels.yml':
23+
- 'actions/checkout@v7.0.1'
24+
- 'actions/download-artifact@v8.0.2'
25+
- 'actions/setup-python@v7.1.0'
26+
- 'actions/upload-artifact@v7.0.2'
27+
- 'astral-sh/setup-uv@v7.6.0'
28+
- 'pyo3/maturin-action@v1.51.0'
29+
- 'pypa/gh-action-pypi-publish@release/v1'
30+
'.github/workflows/rust-release.yml':
31+
- 'actions/checkout@v7.0.1'
32+
- 'rust-lang/crates-io-auth-action@v1.0.6'
33+
'.github/workflows/test-python.yml':
34+
- 'actions/checkout@v7.0.1'
35+
- 'actions/setup-python@v7.1.0'
36+
- 'astral-sh/ruff-action@v3.6.1'
37+
- 'astral-sh/setup-uv@v7.6.0'
38+
- 'dtolnay/rust-toolchain@master'
39+
- 'swatinem/rust-cache@v2.9.3'
40+
'.github/workflows/test.yml':
41+
- 'actions/checkout@v7.0.1'
42+
- 'dtolnay/rust-toolchain@master'
43+
- 'swatinem/rust-cache@v2.9.3'
44+
'.github/workflows/verify-actions-lock.yml':
45+
- 'actions/checkout@v7.0.1'
46+
'.github/workflows/wasm-build.yml':
47+
- 'actions/checkout@v7.0.1'
48+
- 'dtolnay/rust-toolchain@master'
49+
- 'swatinem/rust-cache@v2.9.3'
50+
dependencies:
51+
'actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7':
52+
ref: 'v5.0.4'
53+
commit: 'sha1-668228422ae6a00e4ad889ee87cd7109ec5666a7'
54+
owner_id: 44036562
55+
repo_id: 215566462
56+
'actions/checkout@v7.0.1':
57+
ref: 'v7.0.1'
58+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
59+
owner_id: 44036562
60+
repo_id: 197814629
61+
'actions/create-github-app-token@v3.3.0':
62+
ref: 'v3.3.0'
63+
commit: 'sha1-64ab729a6294000f5aa4a4bc0b73d1f32bc45510'
64+
owner_id: 44036562
65+
repo_id: 642580244
66+
'actions/download-artifact@v8.0.2':
67+
ref: 'v8.0.2'
68+
commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333'
69+
owner_id: 44036562
70+
repo_id: 192626254
71+
'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd':
72+
ref: 'v8.0.0'
73+
commit: 'sha1-ed597411d8f924073f98dfc5c65a23a2325f34cd'
74+
owner_id: 44036562
75+
repo_id: 205262760
76+
'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405':
77+
ref: 'v6.2.0'
78+
commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'
79+
owner_id: 44036562
80+
repo_id: 192625525
81+
'actions/setup-python@v7.1.0':
82+
ref: 'v7.1.0'
83+
commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0'
84+
owner_id: 44036562
85+
repo_id: 192625525
86+
'actions/upload-artifact@v7.0.2':
87+
ref: 'v7.0.2'
88+
commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
89+
owner_id: 44036562
90+
repo_id: 192625955
91+
'astral-sh/ruff-action@v3.6.1':
92+
ref: 'v3.6.1'
93+
commit: 'sha1-4919ec5cf1f49eff0871dbcea0da843445b837e6'
94+
owner_id: 115962839
95+
repo_id: 865075538
96+
'astral-sh/setup-uv@v7.6.0':
97+
ref: 'v7.6.0'
98+
commit: 'sha1-37802adc94f370d6bfd71619e3f0bf239e1f3b78'
99+
owner_id: 115962839
100+
repo_id: 846733598
101+
'codspeedhq/action@v5.6.3':
102+
ref: 'v5.6.3'
103+
commit: 'sha1-af75f77f17a054769abefaa42fe8dc2975469b5f'
104+
owner_id: 116658140
105+
repo_id: 561699778
106+
uses:
107+
- 'actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7'
108+
- 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd'
109+
'dtolnay/rust-toolchain@master':
110+
ref: 'master'
111+
commit: 'sha1-683b588c487a69d01f6c6ddf40f036ff682cc2c8'
112+
owner_id: 1940490
113+
repo_id: 260749683
114+
'moonrepo/setup-rust@v1.3.0':
115+
ref: 'v1.3.0'
116+
commit: 'sha1-abb2d32350334249b178c401e5ec5836e0cd88d3'
117+
owner_id: 102833400
118+
repo_id: 628406248
119+
'pyo3/maturin-action@v1.51.0':
120+
ref: 'v1.51.0'
121+
commit: 'sha1-e83996d129638aa358a18fbd1dfb82f0b0fb5d3b'
122+
owner_id: 28156855
123+
repo_id: 363801746
124+
'pypa/gh-action-pypi-publish@release/v1':
125+
ref: 'release/v1'
126+
commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086'
127+
owner_id: 647025
128+
repo_id: 178055147
129+
uses:
130+
- 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405'
131+
'rust-lang/crates-io-auth-action@v1.0.6':
132+
ref: 'v1.0.6'
133+
commit: 'sha1-3268eb413133e2960fa4ae0e963ca76380c54cd9'
134+
owner_id: 5430905
135+
repo_id: 1008931044
136+
'swatinem/rust-cache@v2.9.3':
137+
ref: 'v2.9.3'
138+
commit: 'sha1-d1527c8f67ef9af357290475d4af4b0fab8f12e0'
139+
owner_id: 580492
140+
repo_id: 298565987
141+
'ytanikin/pr-conventional-commits@1.5.2':
142+
ref: '1.5.2'
143+
commit: 'sha1-639145d78959c53c43112365837e3abd21ed67c1'
144+
owner_id: 9797137
145+
repo_id: 646513680

‎.github/workflows/bench.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
git config --global --add safe.directory $GITHUB_WORKSPACE
3737
3838
- name: Checkout repository
39-
uses: actions/checkout@v7
39+
uses: actions/checkout@v7.0.1
4040
with:
4141
persist-credentials: false
4242

@@ -46,7 +46,7 @@ jobs:
4646
ls -lh benches/
4747
4848
- name: Setup rust toolchain, cache and cargo-codspeed binary
49-
uses: moonrepo/setup-rust@v1
49+
uses: moonrepo/setup-rust@v1.3.0
5050
with:
5151
channel: stable
5252
cache: false
@@ -57,7 +57,7 @@ jobs:
5757
run: cargo codspeed build
5858

5959
- name: Run the benchmarks
60-
uses: CodSpeedHQ/action@v5
60+
uses: CodSpeedHQ/action@v5.6.3
6161
with:
6262
mode: simulation
6363
run: cargo codspeed run

‎.github/workflows/lint.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v7
27+
uses: actions/checkout@v7.0.1
2828
with:
2929
persist-credentials: false
3030

@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v7
41+
uses: actions/checkout@v7.0.1
4242
with:
4343
persist-credentials: false
4444

@@ -51,13 +51,15 @@ jobs:
5151
name: Docs should build without warnings
5252
runs-on: ubuntu-24.04-arm
5353
steps:
54-
- uses: actions/checkout@v7
54+
- uses: actions/checkout@v7.0.1
5555
with:
5656
submodules: "recursive"
5757
- name: Install Rust
58-
uses: dtolnay/rust-toolchain@stable
58+
uses: dtolnay/rust-toolchain@master
59+
with:
60+
toolchain: stable
5961

60-
- uses: Swatinem/rust-cache@v2
62+
- uses: Swatinem/rust-cache@v2.9.3
6163

6264
- name: Test that docs build without warnings
6365
run: cargo doc --all-features --document-private-items

‎.github/workflows/python-docs-publish.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ jobs:
2020
run:
2121
working-directory: python
2222
steps:
23-
- uses: actions/checkout@v7
23+
- uses: actions/checkout@v7.0.1
2424
# We need to additionally fetch the gh-pages branch for mike deploy
2525
with:
2626
fetch-depth: 0
2727
submodules: "true"
2828

2929
- name: Install Rust
30-
uses: dtolnay/rust-toolchain@stable
30+
uses: dtolnay/rust-toolchain@master
31+
with:
32+
toolchain: stable
3133

32-
- uses: Swatinem/rust-cache@v2
34+
- uses: Swatinem/rust-cache@v2.9.3
3335

3436
- name: Install a specific version of uv
35-
uses: astral-sh/setup-uv@v7
37+
uses: astral-sh/setup-uv@v7.6.0
3638
with:
3739
enable-cache: true
3840
version: "0.5.x"

0 commit comments

Comments
 (0)