Skip to content

Commit cb5ce9f

Browse files
committed
ci: pin GitHub Actions to full commit SHAs
Replace mutable tag references in uses: with the full commit SHA each tag currently points to, keeping the version as a trailing comment for readability. Already-pinned actions (setup-uv, gh-action-pypi-publish) are left unchanged.
1 parent 147cbbe commit cb5ce9f

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,26 @@ jobs:
4242
git config --global core.autocrlf false
4343
git config --global core.eol lf
4444
45-
- uses: actions/checkout@v7
45+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4646
with:
4747
fetch-depth: 0
4848
submodules: recursive
4949

5050
- name: Set up QEMU
51-
uses: docker/setup-qemu-action@v4
51+
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
5252
if: runner.os == 'Linux'
5353

5454
- name: Install uv
5555
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
5656

5757
- name: Build wheels
58-
uses: pypa/cibuildwheel@v4.1.1
58+
uses: pypa/cibuildwheel@4726cd35bb13f7bde50cf2761f2499ac7b3aa32c # v4.1.1
5959
env:
6060
CIBW_ARCHS: "${{ matrix.archs }}"
6161
CIBW_BUILD: "${{ matrix.build && '*-' || ''}}${{ matrix.build }}*"
6262
CIBW_PLATFORM: "${{ matrix.platform }}"
6363

64-
- uses: actions/upload-artifact@v7
64+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6565
with:
6666
name: wheels-${{ matrix.os }}-${{ matrix.build }}-${{ matrix.archs }}
6767
path: ./wheelhouse/*.whl
@@ -74,13 +74,13 @@ jobs:
7474
matrix:
7575
python-version: ['3.10']
7676
steps:
77-
- uses: actions/checkout@v7
77+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
7878
with:
7979
fetch-depth: 0
8080
submodules: recursive
8181

8282
- name: Set up Python ${{ matrix.python-version }}
83-
uses: actions/setup-python@v7
83+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
8484
with:
8585
python-version: ${{ matrix.python-version }}
8686

@@ -90,7 +90,7 @@ jobs:
9090
- name: Build sdist
9191
run: python setup.py build sdist
9292

93-
- uses: actions/upload-artifact@v7
93+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9494
with:
9595
name: wheels-dist
9696
path: dist/*.tar.gz
@@ -118,7 +118,7 @@ jobs:
118118
permissions:
119119
id-token: write
120120
steps:
121-
- uses: actions/download-artifact@v8
121+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
122122
with:
123123
pattern: wheels-*
124124
path: dist
@@ -173,12 +173,12 @@ jobs:
173173
env:
174174
TAG: ${{ github.ref_name }}
175175
steps:
176-
- uses: actions/checkout@v7
176+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
177177
if: ${{ strategy.job-index == 0 }}
178178
with:
179179
fetch-depth: 0
180180

181-
- uses: actions/download-artifact@v8
181+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
182182
with:
183183
pattern: wheels-*
184184
path: dist
@@ -260,7 +260,7 @@ jobs:
260260
skip-existing: true
261261

262262
- name: Upload assets to GitHub Release
263-
uses: softprops/action-gh-release@v3.0.2
263+
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
264264
with:
265265
files: |
266266
dist_group/*.whl

.github/workflows/codspeed.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
name: Run benchmarks
1919
runs-on: ubuntu-24.04
2020
steps:
21-
- uses: actions/checkout@v7
21+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2222
with:
2323
fetch-depth: 0
2424
submodules: recursive
2525

2626
- name: Set up Python
27-
uses: actions/setup-python@v7
27+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2828
with:
2929
python-version: "3.13"
3030

@@ -36,7 +36,7 @@ jobs:
3636
run: python setup.py build_ext --inplace
3737

3838
- name: Run benchmarks
39-
uses: CodSpeedHQ/action@v5.0.1
39+
uses: CodSpeedHQ/action@88472375d0a4572cf70a9f1fe3a4e0ab8da1b924 # v5.0.1
4040
with:
4141
mode: simulation
4242
run: pytest tests/test_benchmark.py --codspeed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
- "pypy3.11"
2323

2424
steps:
25-
- uses: actions/checkout@v7
25+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626
with:
2727
fetch-depth: 0
2828
submodules: recursive
2929

3030
- name: Set up Python ${{ matrix.python-version }}
31-
uses: actions/setup-python@v7
31+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434

@@ -45,13 +45,13 @@ jobs:
4545
name: Test on big-endian s390x
4646
runs-on: ubuntu-22.04
4747
steps:
48-
- uses: actions/checkout@v7
48+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4949
with:
5050
fetch-depth: 0
5151
submodules: recursive
5252

5353
- name: Run tests on s390x
54-
uses: uraimo/run-on-arch-action@v3
54+
uses: uraimo/run-on-arch-action@f9b26e3a1a408d5fd530d20c17b9f3f4428ff8d9 # v3.1.0
5555
with:
5656
arch: s390x
5757
distro: ubuntu22.04

0 commit comments

Comments
 (0)