Skip to content

Commit 40533a4

Browse files
authored
[3.12] Lock GitHub Actions workflows (GH-161811) (GH-161882) (#161909)
(cherry picked from commit 023c3d1) (cherry picked from commit 16b9ac2)
1 parent 3d6d2a6 commit 40533a4

15 files changed

Lines changed: 175 additions & 60 deletions

‎.github/workflows/actions.lock‎

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
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/build.yml':
7+
- 'actions/cache@v6.1.0'
8+
- 'actions/checkout@v7.0.1'
9+
- 'actions/setup-python@v7.0.0'
10+
- 'actions/upload-artifact@v7.0.1'
11+
- 'egor-tensin/setup-gcc@a2861a8b8538f49cf2850980acccf6b05a1b2ae4'
12+
- 'hendrikmuhs/ccache-action@v1.2.24'
13+
- 're-actors/alls-green@v1.3.0'
14+
'.github/workflows/lint.yml':
15+
- 'actions/checkout@v7.0.1'
16+
- 'j178/prek-action@v3.0.0'
17+
'.github/workflows/mypy.yml':
18+
- 'actions/checkout@v7.0.1'
19+
- 'actions/setup-python@v7.0.0'
20+
'.github/workflows/require-pr-label.yml':
21+
- 'mheap/github-action-required-labels@v5.6.0'
22+
'.github/workflows/reusable-change-detection.yml':
23+
- 'actions/checkout@v7.0.1'
24+
- 'ana06/get-changed-files@v2.3.0'
25+
'.github/workflows/reusable-context.yml':
26+
- 'actions/checkout@v7.0.1'
27+
- 'actions/setup-python@v7.0.0'
28+
'.github/workflows/reusable-docs.yml':
29+
- 'actions/cache@v6.1.0'
30+
- 'actions/checkout@v7.0.1'
31+
- 'actions/setup-python@v7.0.0'
32+
'.github/workflows/reusable-macos.yml':
33+
- 'actions/cache@v6.1.0'
34+
- 'actions/checkout@v7.0.1'
35+
'.github/workflows/reusable-tsan.yml':
36+
- 'actions/cache@v6.1.0'
37+
- 'actions/checkout@v7.0.1'
38+
- 'hendrikmuhs/ccache-action@v1.2.24'
39+
'.github/workflows/reusable-ubuntu.yml':
40+
- 'actions/cache@v6.1.0'
41+
- 'actions/checkout@v7.0.1'
42+
- 'hendrikmuhs/ccache-action@v1.2.24'
43+
'.github/workflows/reusable-windows.yml':
44+
- 'actions/checkout@v7.0.1'
45+
'.github/workflows/verify-ensurepip-wheels.yml':
46+
- 'actions/checkout@v7.0.1'
47+
- 'actions/setup-python@v7.0.0'
48+
'.github/workflows/verify-expat.yml':
49+
- 'actions/checkout@v7.0.1'
50+
dependencies:
51+
'actions/cache@v6.1.0':
52+
ref: 'v6.1.0'
53+
commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
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/setup-python@v7.0.0':
62+
ref: 'v7.0.0'
63+
commit: 'sha1-5fda3b95a4ea91299a34e894583c3862153e4b97'
64+
owner_id: 44036562
65+
repo_id: 192625525
66+
'actions/upload-artifact@v7.0.1':
67+
ref: 'v7.0.1'
68+
commit: 'sha1-043fb46d1a93c77aae656e7c1c64a875d1fc6a0a'
69+
owner_id: 44036562
70+
repo_id: 192625955
71+
'ana06/get-changed-files@v2.3.0':
72+
ref: 'v2.3.0'
73+
commit: 'sha1-25f79e676e7ea1868813e21465014798211fad8c'
74+
owner_id: 16052290
75+
repo_id: 368992295
76+
'egor-tensin/setup-gcc@a2861a8b8538f49cf2850980acccf6b05a1b2ae4':
77+
ref: 'master'
78+
commit: 'sha1-a2861a8b8538f49cf2850980acccf6b05a1b2ae4'
79+
owner_id: 355889
80+
repo_id: 324233414
81+
'hendrikmuhs/ccache-action@v1.2.24':
82+
ref: 'v1.2.24'
83+
commit: 'sha1-f09c25b45002a07be2955cbe52e8cee55643f89d'
84+
owner_id: 7126422
85+
repo_id: 319035161
86+
'j178/prek-action@v3.0.0':
87+
ref: 'v3.0.0'
88+
commit: 'sha1-4e14d07f9231acabce116ccfca13b13dd9755ece'
89+
owner_id: 10510431
90+
repo_id: 1052387486
91+
'mheap/github-action-required-labels@v5.6.0':
92+
ref: 'v5.6.0'
93+
commit: 'sha1-23e10fde7e062233401931a0eece796cd9bf3177'
94+
owner_id: 59130
95+
repo_id: 272521528
96+
're-actors/alls-green@v1.3.0':
97+
ref: 'v1.3.0'
98+
commit: 'sha1-b5b5b37504aa4183270bd3d855c52a67f212be35'
99+
owner_id: 46427759
100+
repo_id: 434447646

‎.github/workflows/build.yml‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ jobs:
3535
# || 'falsy-branch'
3636
# }}
3737
#
38-
uses: ./.github/workflows/reusable-context.yml
38+
uses: $/.github/workflows/reusable-context.yml
3939

4040
check-docs:
4141
name: Docs
4242
needs: build-context
4343
if: fromJSON(needs.build-context.outputs.run-docs)
44-
uses: ./.github/workflows/reusable-docs.yml
44+
uses: $/.github/workflows/reusable-docs.yml
4545

4646
check-abi:
4747
name: 'Check if the ABI has changed'
@@ -50,10 +50,10 @@ jobs:
5050
needs: build-context
5151
if: needs.build-context.outputs.run-tests == 'true'
5252
steps:
53-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
53+
- uses: actions/checkout@v7.0.1
5454
with:
5555
persist-credentials: false
56-
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
56+
- uses: actions/setup-python@v7.0.0
5757
- name: Install dependencies
5858
run: |
5959
sudo ./.github/workflows/posix-deps-apt.sh
@@ -82,7 +82,7 @@ jobs:
8282
if: ${{ failure() && steps.check.conclusion == 'failure' }}
8383
run: |
8484
make regen-abidump
85-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
85+
- uses: actions/upload-artifact@v7.0.1
8686
name: Publish updated ABI files
8787
if: ${{ failure() && steps.check.conclusion == 'failure' }}
8888
with:
@@ -104,7 +104,7 @@ jobs:
104104
run: |
105105
apt update && apt install git -yq
106106
git config --global --add safe.directory "$GITHUB_WORKSPACE"
107-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
107+
- uses: actions/checkout@v7.0.1
108108
with:
109109
fetch-depth: 1
110110
persist-credentials: false
@@ -141,16 +141,16 @@ jobs:
141141
needs: build-context
142142
if: needs.build-context.outputs.run-tests == 'true'
143143
steps:
144-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
144+
- uses: actions/checkout@v7.0.1
145145
with:
146146
persist-credentials: false
147-
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
147+
- uses: actions/setup-python@v7.0.0
148148
with:
149149
python-version: '3.x'
150150
- name: Runner image version
151151
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
152152
- name: Restore config.cache
153-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
153+
uses: actions/cache@v6.1.0
154154
with:
155155
path: config.cache
156156
# Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python
@@ -160,7 +160,7 @@ jobs:
160160
- name: Add ccache to PATH
161161
run: echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
162162
- name: Configure ccache action
163-
uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
163+
uses: hendrikmuhs/ccache-action@v1.2.24
164164
with:
165165
save: false
166166
- name: Configure CPython
@@ -211,7 +211,7 @@ jobs:
211211
free-threading:
212212
- false
213213
# - true
214-
uses: ./.github/workflows/reusable-windows.yml
214+
uses: $/.github/workflows/reusable-windows.yml
215215
with:
216216
arch: ${{ matrix.arch }}
217217
free-threading: ${{ matrix.free-threading }}
@@ -236,7 +236,7 @@ jobs:
236236
exclude:
237237
- os: macos-26-intel
238238
free-threading: true
239-
uses: ./.github/workflows/reusable-macos.yml
239+
uses: $/.github/workflows/reusable-macos.yml
240240
with:
241241
config_hash: ${{ needs.build-context.outputs.config-hash }}
242242
free-threading: ${{ matrix.free-threading }}
@@ -254,7 +254,7 @@ jobs:
254254
free-threading:
255255
- false
256256
# - true
257-
uses: ./.github/workflows/reusable-ubuntu.yml
257+
uses: $/.github/workflows/reusable-ubuntu.yml
258258
with:
259259
config_hash: ${{ needs.build-context.outputs.config-hash }}
260260
free-threading: ${{ matrix.free-threading }}
@@ -276,13 +276,13 @@ jobs:
276276
OPENSSL_DIR: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}
277277
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
278278
steps:
279-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
279+
- uses: actions/checkout@v7.0.1
280280
with:
281281
persist-credentials: false
282282
- name: Runner image version
283283
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
284284
- name: Restore config.cache
285-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
285+
uses: actions/cache@v6.1.0
286286
with:
287287
path: config.cache
288288
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}
@@ -297,7 +297,7 @@ jobs:
297297
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> "$GITHUB_ENV"
298298
- name: 'Restore OpenSSL build'
299299
id: cache-openssl
300-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
300+
uses: actions/cache@v6.1.0
301301
with:
302302
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
303303
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -308,7 +308,7 @@ jobs:
308308
run: |
309309
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
310310
- name: Configure ccache action
311-
uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
311+
uses: hendrikmuhs/ccache-action@v1.2.24
312312
with:
313313
save: false
314314
- name: Configure CPython
@@ -330,7 +330,7 @@ jobs:
330330
OPENSSL_VER: 3.0.15
331331
PYTHONSTRICTEXTENSIONBUILD: 1
332332
steps:
333-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
333+
- uses: actions/checkout@v7.0.1
334334
with:
335335
persist-credentials: false
336336
- name: Register gcc problem matcher
@@ -344,7 +344,7 @@ jobs:
344344
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> "$GITHUB_ENV"
345345
- name: 'Restore OpenSSL build'
346346
id: cache-openssl
347-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
347+
uses: actions/cache@v6.1.0
348348
with:
349349
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
350350
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -355,7 +355,7 @@ jobs:
355355
run: |
356356
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
357357
- name: Configure ccache action
358-
uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
358+
uses: hendrikmuhs/ccache-action@v1.2.24
359359
with:
360360
save: false
361361
- name: Setup directory envs for out-of-tree builds
@@ -369,7 +369,7 @@ jobs:
369369
- name: Runner image version
370370
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
371371
- name: Restore config.cache
372-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
372+
uses: actions/cache@v6.1.0
373373
with:
374374
path: ${{ env.CPYTHON_BUILDDIR }}/config.cache
375375
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}
@@ -402,7 +402,7 @@ jobs:
402402
./python -m venv "$VENV_LOC" && "$VENV_PYTHON" -m pip install -r "${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt"
403403
- name: 'Restore Hypothesis database'
404404
id: cache-hypothesis-database
405-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
405+
uses: actions/cache@v6.1.0
406406
with:
407407
path: ./hypothesis
408408
key: hypothesis-database-${{ github.head_ref || github.run_id }}
@@ -428,7 +428,7 @@ jobs:
428428
-x test_subprocess \
429429
-x test_signal \
430430
-x test_sysconfig
431-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
431+
- uses: actions/upload-artifact@v7.0.1
432432
if: always()
433433
with:
434434
name: hypothesis-example-db
@@ -449,13 +449,13 @@ jobs:
449449
PYTHONSTRICTEXTENSIONBUILD: 1
450450
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
451451
steps:
452-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
452+
- uses: actions/checkout@v7.0.1
453453
with:
454454
persist-credentials: false
455455
- name: Runner image version
456456
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
457457
- name: Restore config.cache
458-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
458+
uses: actions/cache@v6.1.0
459459
with:
460460
path: config.cache
461461
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}
@@ -474,7 +474,7 @@ jobs:
474474
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> "$GITHUB_ENV"
475475
- name: 'Restore OpenSSL build'
476476
id: cache-openssl
477-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
477+
uses: actions/cache@v6.1.0
478478
with:
479479
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
480480
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -485,7 +485,7 @@ jobs:
485485
run: |
486486
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
487487
- name: Configure ccache action
488-
uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
488+
uses: hendrikmuhs/ccache-action@v1.2.24
489489
with:
490490
save: ${{ github.event_name == 'push' }}
491491
max-size: "200M"
@@ -509,7 +509,7 @@ jobs:
509509
matrix:
510510
free-threading:
511511
- false
512-
uses: ./.github/workflows/reusable-tsan.yml
512+
uses: $/.github/workflows/reusable-tsan.yml
513513
with:
514514
config_hash: ${{ needs.build-context.outputs.config-hash }}
515515
free-threading: ${{ matrix.free-threading }}
@@ -534,7 +534,7 @@ jobs:
534534

535535
steps:
536536
- name: Check whether the needed jobs succeeded or failed
537-
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35
537+
uses: re-actors/alls-green@v1.3.0
538538
with:
539539
allowed-failures: >-
540540
build-ubuntu-ssltests,

‎.github/workflows/lint.yml‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,22 @@ jobs:
1919
timeout-minutes: 10
2020

2121
steps:
22-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22+
- uses: actions/checkout@v7.0.1
2323
with:
2424
persist-credentials: false
25-
- uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
25+
- uses: j178/prek-action@v3.0.0
26+
27+
# Fails when .github/workflows/actions.lock is out of sync with the
28+
# workflows or a locked pin no longer verifies upstream.
29+
lockfile:
30+
runs-on: ubuntu-slim
31+
timeout-minutes: 10
32+
env:
33+
GH_TOKEN: ${{ github.token }}
34+
35+
steps:
36+
- uses: actions/checkout@v7.0.1
37+
with:
38+
persist-credentials: false
39+
- run: gh extension install github/gh-actions-lock --pin v0.4.1
40+
- run: gh actions-lock --verify

‎.github/workflows/mypy.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
runs-on: ubuntu-latest
3131
timeout-minutes: 10
3232
steps:
33-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
33+
- uses: actions/checkout@v7.0.1
3434
with:
3535
persist-credentials: false
36-
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
36+
- uses: actions/setup-python@v7.0.0
3737
with:
3838
python-version: "3.x"
3939
cache: pip

‎.github/workflows/require-pr-label.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
timeout-minutes: 10
1818

1919
steps:
20-
- uses: mheap/github-action-required-labels@23e10fde7e062233401931a0eece796cd9bf3177 # v5.6.0
20+
- uses: mheap/github-action-required-labels@v5.6.0
2121
with:
2222
mode: exactly
2323
count: 0

0 commit comments

Comments
 (0)