Skip to content

Commit cdd889a

Browse files
committed
[3.10] gh-146488: pin all GitHub Actions
This is like #146489, but recreated for 3.10 because of CI drift. Signed-off-by: William Woodruff <william@yossarian.net>
1 parent ad4d5ba commit cdd889a

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run_tests: ${{ steps.check.outputs.run_tests }}
3131
run_ssl_tests: ${{ steps.check.outputs.run_ssl_tests }}
3232
steps:
33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
- name: Check for source changes
3535
id: check
3636
run: |
@@ -62,10 +62,10 @@ jobs:
6262
needs: check_source
6363
if: needs.check_source.outputs.run_tests == 'true'
6464
steps:
65-
- uses: actions/checkout@v6
65+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6666
with:
6767
persist-credentials: false
68-
- uses: actions/setup-python@v6
68+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6969
- name: Install dependencies
7070
run: |
7171
sudo ./.github/workflows/posix-deps-apt.sh
@@ -97,16 +97,16 @@ jobs:
9797
needs: check_source
9898
if: needs.check_source.outputs.run_tests == 'true'
9999
steps:
100-
- uses: actions/checkout@v6
100+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
101101
with:
102102
persist-credentials: false
103-
- uses: actions/setup-python@v6
103+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
104104
- name: Install dependencies
105105
run: sudo ./.github/workflows/posix-deps-apt.sh
106106
- name: Add ccache to PATH
107107
run: echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
108108
- name: Configure ccache action
109-
uses: hendrikmuhs/ccache-action@v1
109+
uses: hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2.20
110110
- name: Check Autoconf version 2.69 and aclocal 1.16.3
111111
run: |
112112
grep "Generated by GNU Autoconf 2.69" configure
@@ -149,7 +149,7 @@ jobs:
149149
env:
150150
IncludeUwp: 'true'
151151
steps:
152-
- uses: actions/checkout@v6
152+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
153153
- name: Build CPython
154154
run: .\PCbuild\build.bat -e -p Win32
155155
- name: Display build info
@@ -165,7 +165,7 @@ jobs:
165165
env:
166166
IncludeUwp: 'true'
167167
steps:
168-
- uses: actions/checkout@v6
168+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
169169
- name: Register MSVC problem matcher
170170
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
171171
- name: Build CPython
@@ -186,7 +186,7 @@ jobs:
186186
HOMEBREW_NO_INSTALL_CLEANUP: 1
187187
PYTHONSTRICTEXTENSIONBUILD: 1
188188
steps:
189-
- uses: actions/checkout@v6
189+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
190190
- name: Install Homebrew dependencies
191191
run: |
192192
brew install pkg-config openssl@3.0 xz gdbm tcl-tk@8
@@ -218,7 +218,7 @@ jobs:
218218
OPENSSL_VER: 3.0.11
219219
PYTHONSTRICTEXTENSIONBUILD: 1
220220
steps:
221-
- uses: actions/checkout@v6
221+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
222222
- name: Register gcc problem matcher
223223
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
224224
- name: Install dependencies
@@ -230,7 +230,7 @@ jobs:
230230
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> "$GITHUB_ENV"
231231
- name: 'Restore OpenSSL build'
232232
id: cache-openssl
233-
uses: actions/cache@v5
233+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
234234
with:
235235
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
236236
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -241,7 +241,7 @@ jobs:
241241
run: |
242242
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
243243
- name: Configure ccache action
244-
uses: hendrikmuhs/ccache-action@v1
244+
uses: hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2.20
245245
- name: Configure CPython
246246
run: ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
247247
- name: Build CPython
@@ -267,7 +267,7 @@ jobs:
267267
OPENSSL_DIR: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}
268268
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
269269
steps:
270-
- uses: actions/checkout@v6
270+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
271271
with:
272272
persist-credentials: false
273273
- name: Register gcc problem matcher
@@ -281,7 +281,7 @@ jobs:
281281
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> "$GITHUB_ENV"
282282
- name: 'Restore OpenSSL build'
283283
id: cache-openssl
284-
uses: actions/cache@v5
284+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
285285
with:
286286
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
287287
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -292,7 +292,7 @@ jobs:
292292
run: |
293293
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
294294
- name: Configure ccache action
295-
uses: hendrikmuhs/ccache-action@v1.2
295+
uses: hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2.20
296296
- name: Configure CPython
297297
run: ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
298298
- name: Build CPython

.github/workflows/build_msi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
name: 'Windows (x86) Installer'
3535
runs-on: windows-2022
3636
steps:
37-
- uses: actions/checkout@v6
37+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3838
- name: Build CPython installer
3939
run: .\Tools\msi\build.bat --doc -x86
4040

4141
build_win_amd64:
4242
name: 'Windows (x64) Installer'
4343
runs-on: windows-2022
4444
steps:
45-
- uses: actions/checkout@v6
45+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4646
- name: Build CPython installer
4747
run: .\Tools\msi\build.bat --doc -x64

.github/workflows/doc.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
name: 'Docs'
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v6
35+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3636
- name: Register Sphinx problem matcher
3737
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
3838
- name: 'Set up Python'
39-
uses: actions/setup-python@v6
39+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4040
with:
4141
python-version: '3.12'
4242
cache: 'pip'
@@ -46,7 +46,7 @@ jobs:
4646
- name: 'Build HTML documentation'
4747
run: make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html
4848
- name: 'Upload'
49-
uses: actions/upload-artifact@v6
49+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
5050
with:
5151
name: doc-html
5252
path: Doc/build/html
@@ -58,10 +58,10 @@ jobs:
5858
name: 'Doctest'
5959
runs-on: ubuntu-latest
6060
steps:
61-
- uses: actions/checkout@v6
61+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6262
- name: Register Sphinx problem matcher
6363
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
64-
- uses: actions/cache@v5
64+
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
6565
with:
6666
path: ~/.cache/pip
6767
key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }}

.github/workflows/stale.yml

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

1515
steps:
1616
- name: "Check PRs"
17-
uses: actions/stale@v9
17+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
1818
with:
1919
repo-token: ${{ secrets.GITHUB_TOKEN }}
2020
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity.'

.github/workflows/verify-ensurepip-wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
verify:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v6
28-
- uses: actions/setup-python@v6
27+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2929
with:
3030
python-version: '3'
3131
- name: Compare checksums of bundled pip and setuptools to ones published on PyPI

.github/workflows/verify-expat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
timeout-minutes: 5
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
with:
2828
persist-credentials: false
2929
- name: Download and verify bundled libexpat files

0 commit comments

Comments
 (0)