Skip to content

Commit 23b8127

Browse files
authored
Pin all GitHub Actions references (psf#4901)
This hash-pins all GitHub Actions. I used `pinact run -v` to perform and verify this; a separate tool like `gha-update` could be used to cross-check them for honesty! Note: This only pins the actions; I haven't attempted any bumps. Dependabot will keep them updated, including updating the version comments. Signed-off-by: William Woodruff <[email protected]>
1 parent 782e560 commit 23b8127

File tree

11 files changed

+49
-49
lines changed

11 files changed

+49
-49
lines changed

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1818

1919
- name: Grep CHANGES.md for PR number
2020
if: contains(github.event.pull_request.labels.*.name, 'skip news') != true

.github/workflows/diff_shades.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
matrix: ${{ steps.set-config.outputs.matrix }}
2626

2727
steps:
28-
- uses: actions/checkout@v6
28+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2929

30-
- uses: actions/setup-python@v6
30+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
3131
with:
3232
python-version: "3.13"
3333

@@ -53,12 +53,12 @@ jobs:
5353

5454
steps:
5555
- name: Checkout this repository (full clone)
56-
uses: actions/checkout@v6
56+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5757
with:
5858
# The baseline revision could be rather old so a full clone is ideal.
5959
fetch-depth: 0
6060

61-
- uses: actions/setup-python@v6
61+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
6262
with:
6363
python-version: "3.13"
6464

@@ -70,7 +70,7 @@ jobs:
7070
7171
- name: Attempt to use cached baseline analysis
7272
id: baseline-cache
73-
uses: actions/cache@v4
73+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
7474
with:
7575
path: ${{ matrix.baseline-analysis }}
7676
key: ${{ matrix.baseline-cache-key }}
@@ -90,7 +90,7 @@ jobs:
9090
-v --work-dir projects-cache/ ${{ matrix.force-flag }}
9191
9292
- name: Upload baseline analysis
93-
uses: actions/upload-artifact@v5
93+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
9494
with:
9595
name: ${{ matrix.baseline-analysis }}
9696
path: ${{ matrix.baseline-analysis }}
@@ -106,12 +106,12 @@ jobs:
106106

107107
steps:
108108
- name: Checkout this repository (full clone)
109-
uses: actions/checkout@v6
109+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
110110
with:
111111
# The baseline revision could be rather old so a full clone is ideal.
112112
fetch-depth: 0
113113

114-
- uses: actions/setup-python@v6
114+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
115115
with:
116116
python-version: "3.13"
117117

@@ -132,7 +132,7 @@ jobs:
132132
# (but it wouldn't cause problems if we theoretically did)
133133
- name: Attempt to find baseline analysis
134134
id: baseline-cache
135-
uses: actions/cache@v4
135+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
136136
with:
137137
path: ${{ matrix.baseline-analysis }}
138138
key: ${{ matrix.baseline-cache-key }}
@@ -151,7 +151,7 @@ jobs:
151151
-v --work-dir projects-cache/ ${{ matrix.force-flag }}
152152
153153
- name: Upload target analysis
154-
uses: actions/upload-artifact@v5
154+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
155155
with:
156156
name: ${{ matrix.target-analysis }}
157157
path: ${{ matrix.target-analysis }}
@@ -171,13 +171,13 @@ jobs:
171171
include: ${{ fromJson(needs.configure.outputs.matrix) }}
172172

173173
steps:
174-
- uses: actions/checkout@v6
174+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
175175

176-
- uses: actions/download-artifact@v6
176+
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
177177
with:
178178
merge-multiple: true
179179

180-
- uses: actions/setup-python@v6
180+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
181181
with:
182182
python-version: "3.13"
183183

@@ -192,7 +192,7 @@ jobs:
192192
${{ matrix.baseline-analysis }} ${{ matrix.target-analysis }}
193193
194194
- name: Upload diff report
195-
uses: actions/upload-artifact@v5
195+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
196196
with:
197197
name: ${{ matrix.mode }}-diff.html
198198
path: diff.html
@@ -207,7 +207,7 @@ jobs:
207207
208208
- name: Upload summary file (PR only)
209209
if: github.event_name == 'pull_request' && matrix.mode == 'preview-new-changes'
210-
uses: actions/upload-artifact@v5
210+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
211211
with:
212212
name: .pr-comment.json
213213
path: .pr-comment.json

.github/workflows/diff_shades_comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
comment:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v6
16-
- uses: actions/setup-python@v6
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
1717
with:
1818
python-version: "3.13"
1919

.github/workflows/doc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626

2727
runs-on: ${{ matrix.os }}
2828
steps:
29-
- uses: actions/checkout@v6
29+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3030

3131
- name: Set up latest Python
32-
uses: actions/setup-python@v6
32+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
3333
with:
3434
python-version: "3.13"
3535
allow-prereleases: true

.github/workflows/docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
19-
uses: actions/[email protected]
19+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2020

2121
- name: Set up QEMU
22-
uses: docker/setup-qemu-action@v3
22+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
2323

2424
- name: Set up Docker Buildx
25-
uses: docker/setup-buildx-action@v3
25+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
2626

2727
- name: Login to DockerHub
28-
uses: docker/login-action@v3
28+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
2929
with:
3030
username: ${{ secrets.DOCKERHUB_USERNAME }}
3131
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -36,7 +36,7 @@ jobs:
3636
latest_non_release)" >> $GITHUB_ENV
3737

3838
- name: Build and push
39-
uses: docker/build-push-action@v6
39+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
4040
with:
4141
context: .
4242
platforms: linux/amd64,linux/arm64
@@ -47,7 +47,7 @@ jobs:
4747
if:
4848
${{ github.event_name == 'release' && github.event.action == 'published' &&
4949
!github.event.release.prerelease }}
50-
uses: docker/build-push-action@v6
50+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
5151
with:
5252
context: .
5353
platforms: linux/amd64,linux/arm64
@@ -58,7 +58,7 @@ jobs:
5858
if:
5959
${{ github.event_name == 'release' && github.event.action == 'published' &&
6060
github.event.release.prerelease }}
61-
uses: docker/build-push-action@v6
61+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
6262
with:
6363
context: .
6464
platforms: linux/amd64,linux/arm64

.github/workflows/fuzz.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
3535

3636
steps:
37-
- uses: actions/checkout@v6
37+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3838

3939
- name: Set up Python ${{ matrix.python-version }}
40-
uses: actions/setup-python@v6
40+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
4141
with:
4242
python-version: ${{ matrix.python-version }}
4343
allow-prereleases: true

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1818

1919
- name: Assert PR target is main
2020
if: github.event_name == 'pull_request' && github.repository == 'psf/black'
@@ -24,7 +24,7 @@ jobs:
2424
fi
2525
2626
- name: Set up latest Python
27-
uses: actions/setup-python@v6
27+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2828
with:
2929
python-version: "3.13"
3030
allow-prereleases: true
@@ -36,7 +36,7 @@ jobs:
3636
python -m pip install tox
3737
3838
- name: Run pre-commit hooks
39-
uses: pre-commit/[email protected]
39+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
4040

4141
- name: Format ourselves
4242
run: |

.github/workflows/pypi_upload.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
if: github.event_name == 'release'
1919

2020
steps:
21-
- uses: actions/[email protected]
21+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222

2323
- name: Set up latest Python
24-
uses: actions/setup-python@v6
24+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2525
with:
2626
python-version: "3.13"
2727
allow-prereleases: true
@@ -46,7 +46,7 @@ jobs:
4646
outputs:
4747
include: ${{ steps.set-matrix.outputs.include }}
4848
steps:
49-
- uses: actions/[email protected]
49+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5050
# Keep cibuildwheel version in sync with below
5151
- name: Install cibuildwheel and pypyp
5252
run: |
@@ -93,14 +93,14 @@ jobs:
9393
include: ${{ fromJson(needs.generate_wheels_matrix.outputs.include) }}
9494

9595
steps:
96-
- uses: actions/[email protected]
96+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
9797
# Keep cibuildwheel version in sync with above
98-
- uses: pypa/[email protected]
98+
- uses: pypa/cibuildwheel@63fd63b352a9a8bdcc24791c9dbee952ee9a8abc # v3.3.0
9999
with:
100100
only: ${{ matrix.only }}
101101

102102
- name: Upload wheels as workflow artifacts
103-
uses: actions/upload-artifact@v5
103+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
104104
with:
105105
name: ${{ matrix.only }}-mypyc-wheels
106106
path: ./wheelhouse/*.whl
@@ -121,7 +121,7 @@ jobs:
121121

122122
steps:
123123
- name: Checkout stable branch
124-
uses: actions/[email protected]
124+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
125125
with:
126126
ref: stable
127127
fetch-depth: 0

.github/workflows/release_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
os: [macOS-latest, ubuntu-latest, windows-latest]
3030

3131
steps:
32-
- uses: actions/checkout@v6
32+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3333
with:
3434
# Give us all history, branches and tags
3535
fetch-depth: 0
3636
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v6
37+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
3838
with:
3939
python-version: ${{ matrix.python-version }}
4040
allow-prereleases: true

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
python-version: "pypy-3.11"
4242

4343
steps:
44-
- uses: actions/checkout@v6
44+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4545

4646
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v6
47+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050
allow-prereleases: true
@@ -82,7 +82,7 @@ jobs:
8282

8383
runs-on: ubuntu-latest
8484
steps:
85-
- uses: actions/checkout@v6
85+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
8686
- name: Send finished signal to Coveralls
8787
uses: AndreMiras/coveralls-python-action@ac868b9540fad490f7ca82b8ca00480fd751ed19
8888
with:
@@ -100,10 +100,10 @@ jobs:
100100
os: [ubuntu-latest, macOS-latest]
101101

102102
steps:
103-
- uses: actions/checkout@v6
103+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
104104

105105
- name: Set up latest Python
106-
uses: actions/setup-python@v6
106+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
107107
with:
108108
python-version: "3.13"
109109

0 commit comments

Comments
 (0)