Skip to content

Commit 070a348

Browse files
authored
[3.11] Lock GitHub Actions workflows (GH-161811) (GH-161882) (#161910)
(cherry picked from commit 023c3d1) (cherry picked from commit 16b9ac2)
1 parent e34c7bb commit 070a348

11 files changed

Lines changed: 151 additions & 47 deletions

‎.github/workflows/actions.lock‎

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

‎.github/workflows/build.yml‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run_ssl_tests: ${{ steps.check.outputs.run_ssl_tests }}
3333
config_hash: ${{ steps.config_hash.outputs.hash }}
3434
steps:
35-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
35+
- uses: actions/checkout@v7.0.1
3636
- name: Check for source changes
3737
id: check
3838
run: |
@@ -64,7 +64,7 @@ jobs:
6464
- name: Get a list of the changed documentation-related files
6565
if: github.event_name == 'pull_request'
6666
id: changed-docs-files
67-
uses: Ana06/get-changed-files@25f79e676e7ea1868813e21465014798211fad8c # v2.3.0
67+
uses: Ana06/get-changed-files@v2.3.0
6868
with:
6969
filter: |
7070
Doc/**
@@ -83,7 +83,7 @@ jobs:
8383
name: Docs
8484
needs: check_source
8585
if: fromJSON(needs.check_source.outputs.run-docs)
86-
uses: ./.github/workflows/reusable-docs.yml
86+
uses: $/.github/workflows/reusable-docs.yml
8787

8888
check_abi:
8989
name: 'Check if the ABI has changed'
@@ -92,10 +92,10 @@ jobs:
9292
needs: check_source
9393
if: needs.check_source.outputs.run_tests == 'true'
9494
steps:
95-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
95+
- uses: actions/checkout@v7.0.1
9696
with:
9797
persist-credentials: false
98-
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
98+
- uses: actions/setup-python@v7.0.0
9999
- name: Install dependencies
100100
run: |
101101
sudo ./.github/workflows/posix-deps-apt.sh
@@ -124,7 +124,7 @@ jobs:
124124
if: ${{ failure() && steps.check.conclusion == 'failure' }}
125125
run: |
126126
make regen-abidump
127-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
127+
- uses: actions/upload-artifact@v7.0.1
128128
name: Publish updated ABI files
129129
if: ${{ failure() && steps.check.conclusion == 'failure' }}
130130
with:
@@ -140,16 +140,16 @@ jobs:
140140
needs: check_source
141141
if: needs.check_source.outputs.run_tests == 'true'
142142
steps:
143-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
143+
- uses: actions/checkout@v7.0.1
144144
with:
145145
persist-credentials: false
146-
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
146+
- uses: actions/setup-python@v7.0.0
147147
with:
148148
python-version: '3.x'
149149
- name: Runner image version
150150
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
151151
- name: Restore config.cache
152-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
152+
uses: actions/cache@v6.1.0
153153
with:
154154
path: config.cache
155155
# Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python
@@ -159,7 +159,7 @@ jobs:
159159
- name: Add ccache to PATH
160160
run: echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
161161
- name: Configure ccache action
162-
uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
162+
uses: hendrikmuhs/ccache-action@v1.2.24
163163
with:
164164
save: false
165165
- name: Check Autoconf version 2.69 and aclocal 1.16.3
@@ -204,21 +204,21 @@ jobs:
204204
name: 'Windows'
205205
needs: check_source
206206
if: needs.check_source.outputs.run_tests == 'true'
207-
uses: ./.github/workflows/reusable-windows.yml
207+
uses: $/.github/workflows/reusable-windows.yml
208208

209209
build_macos:
210210
name: 'macOS'
211211
needs: check_source
212212
if: needs.check_source.outputs.run_tests == 'true'
213-
uses: ./.github/workflows/reusable-macos.yml
213+
uses: $/.github/workflows/reusable-macos.yml
214214
with:
215215
config_hash: ${{ needs.check_source.outputs.config_hash }}
216216

217217
build_ubuntu:
218218
name: 'Ubuntu'
219219
needs: check_source
220220
if: needs.check_source.outputs.run_tests == 'true'
221-
uses: ./.github/workflows/reusable-ubuntu.yml
221+
uses: $/.github/workflows/reusable-ubuntu.yml
222222
with:
223223
config_hash: ${{ needs.check_source.outputs.config_hash }}
224224
options: |
@@ -244,13 +244,13 @@ jobs:
244244
OPENSSL_DIR: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}
245245
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
246246
steps:
247-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
247+
- uses: actions/checkout@v7.0.1
248248
with:
249249
persist-credentials: false
250250
- name: Runner image version
251251
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
252252
- name: Restore config.cache
253-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
253+
uses: actions/cache@v6.1.0
254254
with:
255255
path: config.cache
256256
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.check_source.outputs.config_hash }}
@@ -265,7 +265,7 @@ jobs:
265265
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> "$GITHUB_ENV"
266266
- name: 'Restore OpenSSL build'
267267
id: cache-openssl
268-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
268+
uses: actions/cache@v6.1.0
269269
with:
270270
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
271271
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -276,7 +276,7 @@ jobs:
276276
run: |
277277
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
278278
- name: Configure ccache action
279-
uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
279+
uses: hendrikmuhs/ccache-action@v1.2.24
280280
with:
281281
save: false
282282
- name: Configure CPython
@@ -299,13 +299,13 @@ jobs:
299299
PYTHONSTRICTEXTENSIONBUILD: 1
300300
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
301301
steps:
302-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
302+
- uses: actions/checkout@v7.0.1
303303
with:
304304
persist-credentials: false
305305
- name: Runner image version
306306
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
307307
- name: Restore config.cache
308-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
308+
uses: actions/cache@v6.1.0
309309
with:
310310
path: config.cache
311311
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.check_source.outputs.config_hash }}
@@ -324,7 +324,7 @@ jobs:
324324
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> "$GITHUB_ENV"
325325
- name: 'Restore OpenSSL build'
326326
id: cache-openssl
327-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
327+
uses: actions/cache@v6.1.0
328328
with:
329329
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
330330
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -335,7 +335,7 @@ jobs:
335335
run: |
336336
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
337337
- name: Configure ccache action
338-
uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
338+
uses: hendrikmuhs/ccache-action@v1.2.24
339339
with:
340340
save: ${{ github.event_name == 'push' }}
341341
max-size: "200M"
@@ -366,7 +366,7 @@ jobs:
366366

367367
steps:
368368
- name: Check whether the needed jobs succeeded or failed
369-
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35
369+
uses: re-actors/alls-green@v1.3.0
370370
with:
371371
allowed-failures: >-
372372
build_macos,

‎.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/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

‎.github/workflows/reusable-docs.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
timeout-minutes: 60
1919
steps:
2020
- name: 'Check out latest PR branch commit'
21-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21+
uses: actions/checkout@v7.0.1
2222
with:
2323
persist-credentials: false
2424
- name: 'Set up Python'
25-
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
25+
uses: actions/setup-python@v7.0.0
2626
with:
2727
python-version: '3'
2828
cache: 'pip'
@@ -34,7 +34,7 @@ jobs:
3434
- name: 'Build HTML documentation'
3535
run: make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html
3636
- name: 'Upload'
37-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
37+
uses: actions/upload-artifact@v7.0.1
3838
with:
3939
name: doc-html
4040
path: Doc/build/html
@@ -45,9 +45,9 @@ jobs:
4545
runs-on: ubuntu-latest
4646
timeout-minutes: 60
4747
steps:
48-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
48+
- uses: actions/checkout@v7.0.1
4949
- name: 'Set up Python'
50-
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
50+
uses: actions/setup-python@v7.0.0
5151
with:
5252
python-version: '3.11' # known to work with Sphinx 4.2
5353
cache: 'pip'
@@ -63,10 +63,10 @@ jobs:
6363
runs-on: ubuntu-24.04
6464
timeout-minutes: 60
6565
steps:
66-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
66+
- uses: actions/checkout@v7.0.1
6767
with:
6868
persist-credentials: false
69-
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
69+
- uses: actions/cache@v6.1.0
7070
with:
7171
path: ~/.cache/pip
7272
key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }}

‎.github/workflows/reusable-macos.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
]
3232
runs-on: ${{ matrix.os }}
3333
steps:
34-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
34+
- uses: actions/checkout@v7.0.1
3535
- name: Runner image version
3636
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
3737
- name: Restore config.cache
38-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
38+
uses: actions/cache@v6.1.0
3939
with:
4040
path: config.cache
4141
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ inputs.config_hash }}

0 commit comments

Comments
 (0)