Skip to content

Commit e80a2f9

Browse files
authored
CI: pin every action to a commit SHA, with its version tag in a comment (#136) (#153)
Each action is pinned to the commit its floating major tag points at today, so nothing that runs changes. release.yml was already pinned.
1 parent d0a2037 commit e80a2f9

3 files changed

Lines changed: 33 additions & 33 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ jobs:
3131
build:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
3535

36-
- uses: astral-sh/setup-uv@v5
36+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
3737

3838
- name: Generate derived pages (landing page, benchx page, schema reference)
3939
run: uv run --python 3.12 --with-requirements docs/requirements.txt python tools/gen_docs.py
4040

4141
- name: Build site
4242
run: uv run --python 3.12 --with-requirements docs/requirements.txt zensical build --strict --clean
4343

44-
- uses: actions/upload-pages-artifact@v3
44+
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
4545
with:
4646
path: site
4747

@@ -56,7 +56,7 @@ jobs:
5656
name: github-pages
5757
url: ${{ steps.deployment.outputs.page_url }}
5858
steps:
59-
- uses: actions/configure-pages@v5
59+
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
6060

6161
- id: deployment
62-
uses: actions/deploy-pages@v4
62+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

‎.github/workflows/e2e.yml‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ jobs:
5656
CCACHE_MAXSIZE: 500M
5757
steps:
5858
- name: Check out benchx
59-
uses: actions/checkout@v4
59+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
6060
with:
6161
path: benchx
6262

6363
- name: Clone benchx_examples
64-
uses: actions/checkout@v4
64+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
6565
with:
6666
repository: benchx-dev/benchx_examples
6767
ref: ${{ inputs.examples_ref || 'main' }}
@@ -81,7 +81,7 @@ jobs:
8181
# The key is new for every run, because a cache cannot be overwritten; a run starts
8282
# from the most recent one. It is saved at the end, also when a later step fails.
8383
- name: Restore the ccache cache
84-
uses: actions/cache/restore@v4
84+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
8585
with:
8686
path: ${{ env.CCACHE_DIR }}
8787
key: ccache-${{ runner.os }}-${{ github.run_id }}-${{ github.run_attempt }}
@@ -90,7 +90,7 @@ jobs:
9090
- name: Zero the ccache statistics
9191
run: ccache --zero-stats
9292

93-
- uses: astral-sh/setup-uv@v5
93+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
9494
with:
9595
enable-cache: true
9696
cache-dependency-glob: benchx/uv.lock
@@ -164,14 +164,14 @@ jobs:
164164

165165
- name: Save the ccache cache
166166
if: always()
167-
uses: actions/cache/save@v4
167+
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
168168
with:
169169
path: ${{ env.CCACHE_DIR }}
170170
key: ccache-${{ runner.os }}-${{ github.run_id }}-${{ github.run_attempt }}
171171

172172
- name: Upload the output
173173
if: always()
174-
uses: actions/upload-artifact@v4
174+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
175175
with:
176176
name: numpy-spin-output
177177
path: |
@@ -186,18 +186,18 @@ jobs:
186186
timeout-minutes: 45
187187
steps:
188188
- name: Check out benchx
189-
uses: actions/checkout@v4
189+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
190190
with:
191191
path: benchx
192192

193193
- name: Clone benchx_examples
194-
uses: actions/checkout@v4
194+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
195195
with:
196196
repository: benchx-dev/benchx_examples
197197
ref: ${{ inputs.examples_ref || 'main' }}
198198
path: benchx_examples
199199

200-
- uses: astral-sh/setup-uv@v5
200+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
201201
with:
202202
enable-cache: true
203203
cache-dependency-glob: benchx/uv.lock
@@ -232,7 +232,7 @@ jobs:
232232

233233
- name: Upload the output
234234
if: always()
235-
uses: actions/upload-artifact@v4
235+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
236236
with:
237237
name: arrow-output
238238
path: |
@@ -247,18 +247,18 @@ jobs:
247247
timeout-minutes: 20
248248
steps:
249249
- name: Check out benchx
250-
uses: actions/checkout@v4
250+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
251251
with:
252252
path: benchx
253253

254254
- name: Clone benchx_examples
255-
uses: actions/checkout@v4
255+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
256256
with:
257257
repository: benchx-dev/benchx_examples
258258
ref: ${{ inputs.examples_ref || 'main' }}
259259
path: benchx_examples
260260

261-
- uses: astral-sh/setup-uv@v5
261+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
262262
with:
263263
enable-cache: true
264264
cache-dependency-glob: benchx/uv.lock
@@ -287,7 +287,7 @@ jobs:
287287

288288
- name: Upload the output
289289
if: always()
290-
uses: actions/upload-artifact@v4
290+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
291291
with:
292292
name: pyperf-suite-output
293293
path: benchx_examples/examples/pyperf-suite/out
@@ -303,18 +303,18 @@ jobs:
303303
BENCHX_HOME: ${{ github.workspace }}/benchx_examples/examples/matmul-params/out/home
304304
steps:
305305
- name: Check out benchx
306-
uses: actions/checkout@v4
306+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
307307
with:
308308
path: benchx
309309

310310
- name: Clone benchx_examples
311-
uses: actions/checkout@v4
311+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
312312
with:
313313
repository: benchx-dev/benchx_examples
314314
ref: ${{ inputs.examples_ref || 'main' }}
315315
path: benchx_examples
316316

317-
- uses: astral-sh/setup-uv@v5
317+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
318318
with:
319319
enable-cache: true
320320
cache-dependency-glob: benchx/uv.lock
@@ -354,7 +354,7 @@ jobs:
354354

355355
- name: Upload the output
356356
if: always()
357-
uses: actions/upload-artifact@v4
357+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
358358
with:
359359
name: matmul-params-output
360360
path: benchx_examples/examples/matmul-params/out
@@ -367,18 +367,18 @@ jobs:
367367
timeout-minutes: 30
368368
steps:
369369
- name: Check out benchx
370-
uses: actions/checkout@v4
370+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
371371
with:
372372
path: benchx
373373

374374
- name: Clone benchx_examples
375-
uses: actions/checkout@v4
375+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
376376
with:
377377
repository: benchx-dev/benchx_examples
378378
ref: ${{ inputs.examples_ref || 'main' }}
379379
path: benchx_examples
380380

381-
- uses: astral-sh/setup-uv@v5
381+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
382382
with:
383383
enable-cache: true
384384
cache-dependency-glob: benchx/uv.lock
@@ -410,7 +410,7 @@ jobs:
410410

411411
- name: Upload the output
412412
if: always()
413-
uses: actions/upload-artifact@v4
413+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
414414
with:
415415
name: numpy-venvs-output
416416
path: benchx_examples/examples/numpy-venvs/out

‎.github/workflows/tests.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
os: [ubuntu-latest, macos-latest]
3636
python-version: ["3.11", "3.13"]
3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
3939

40-
- uses: astral-sh/setup-uv@v5
40+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
4141
with:
4242
enable-cache: true
4343
cache-dependency-glob: uv.lock
@@ -55,9 +55,9 @@ jobs:
5555
name: minimal (no pyarrow) / py3.13
5656
runs-on: ubuntu-latest
5757
steps:
58-
- uses: actions/checkout@v4
58+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
5959

60-
- uses: astral-sh/setup-uv@v5
60+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
6161
with:
6262
enable-cache: true
6363
cache-dependency-glob: uv.lock
@@ -89,9 +89,9 @@ jobs:
8989
name: wheel / py3.13
9090
runs-on: ubuntu-latest
9191
steps:
92-
- uses: actions/checkout@v4
92+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
9393

94-
- uses: astral-sh/setup-uv@v5
94+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
9595

9696
- name: Build the wheel
9797
run: uv build --wheel

0 commit comments

Comments
 (0)