Skip to content

Commit c5a92d4

Browse files
committed
Pin GitHub Actions to specific commits for security
1 parent 26baa74 commit c5a92d4

11 files changed

+41
-41
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run_tests: ${{ steps.check.outputs.run_tests }}
3939
run_hypothesis: ${{ steps.check.outputs.run_hypothesis }}
4040
steps:
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
4242
- name: Check for source changes
4343
id: check
4444
run: |
@@ -80,14 +80,14 @@ jobs:
8080
needs: check_source
8181
if: needs.check_source.outputs.run_tests == 'true'
8282
steps:
83-
- uses: actions/checkout@v3
84-
- uses: actions/setup-python@v3
83+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
84+
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
8585
- name: Install Dependencies
8686
run: sudo ./.github/workflows/posix-deps-apt.sh
8787
- name: Add ccache to PATH
8888
run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
8989
- name: Configure ccache action
90-
uses: hendrikmuhs/[email protected]
90+
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
9191
- name: Check Autoconf version 2.69 and aclocal 1.16.3
9292
run: |
9393
grep "Generated by GNU Autoconf 2.69" configure
@@ -138,7 +138,7 @@ jobs:
138138
env:
139139
IncludeUwp: 'true'
140140
steps:
141-
- uses: actions/checkout@v3
141+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
142142
- name: Build CPython
143143
run: .\PCbuild\build.bat -e -d -p Win32
144144
- name: Display build info
@@ -155,7 +155,7 @@ jobs:
155155
env:
156156
IncludeUwp: 'true'
157157
steps:
158-
- uses: actions/checkout@v3
158+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
159159
- name: Register MSVC problem matcher
160160
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
161161
- name: Build CPython
@@ -177,7 +177,7 @@ jobs:
177177
HOMEBREW_NO_INSTALL_CLEANUP: 1
178178
PYTHONSTRICTEXTENSIONBUILD: 1
179179
steps:
180-
- uses: actions/checkout@v3
180+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
181181
- name: Install Homebrew dependencies
182182
run: brew install pkg-config [email protected] xz gdbm tcl-tk
183183
- name: Configure CPython
@@ -206,7 +206,7 @@ jobs:
206206
OPENSSL_VER: 1.1.1t
207207
PYTHONSTRICTEXTENSIONBUILD: 1
208208
steps:
209-
- uses: actions/checkout@v3
209+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
210210
- name: Register gcc problem matcher
211211
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
212212
- name: Install Dependencies
@@ -218,7 +218,7 @@ jobs:
218218
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
219219
- name: 'Restore OpenSSL build'
220220
id: cache-openssl
221-
uses: actions/cache@v3
221+
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
222222
with:
223223
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
224224
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -229,7 +229,7 @@ jobs:
229229
run: |
230230
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
231231
- name: Configure ccache action
232-
uses: hendrikmuhs/[email protected]
232+
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
233233
- name: Setup directory envs for out-of-tree builds
234234
run: |
235235
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
@@ -270,7 +270,7 @@ jobs:
270270
OPENSSL_DIR: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}
271271
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
272272
steps:
273-
- uses: actions/checkout@v3
273+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
274274
- name: Register gcc problem matcher
275275
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
276276
- name: Install Dependencies
@@ -282,7 +282,7 @@ jobs:
282282
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
283283
- name: 'Restore OpenSSL build'
284284
id: cache-openssl
285-
uses: actions/cache@v3
285+
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
286286
with:
287287
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
288288
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -293,7 +293,7 @@ jobs:
293293
run: |
294294
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
295295
- name: Configure ccache action
296-
uses: hendrikmuhs/[email protected]
296+
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
297297
- name: Configure CPython
298298
run: ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
299299
- name: Build CPython
@@ -313,7 +313,7 @@ jobs:
313313
OPENSSL_VER: 1.1.1t
314314
PYTHONSTRICTEXTENSIONBUILD: 1
315315
steps:
316-
- uses: actions/checkout@v3
316+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
317317
- name: Register gcc problem matcher
318318
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
319319
- name: Install Dependencies
@@ -325,7 +325,7 @@ jobs:
325325
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
326326
- name: 'Restore OpenSSL build'
327327
id: cache-openssl
328-
uses: actions/cache@v3
328+
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
329329
with:
330330
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
331331
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -336,7 +336,7 @@ jobs:
336336
run: |
337337
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
338338
- name: Configure ccache action
339-
uses: hendrikmuhs/[email protected]
339+
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
340340
- name: Setup directory envs for out-of-tree builds
341341
run: |
342342
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
@@ -401,13 +401,13 @@ jobs:
401401
PYTHONSTRICTEXTENSIONBUILD: 1
402402
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
403403
steps:
404-
- uses: actions/checkout@v3
404+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
405405
- name: Register gcc problem matcher
406406
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
407407
- name: Install Dependencies
408408
run: sudo ./.github/workflows/posix-deps-apt.sh
409409
- name: Set up GCC-10 for ASAN
410-
uses: egor-tensin/setup-gcc@v1
410+
uses: egor-tensin/setup-gcc@eaa888eb19115a521fa72b65cd94fe1f25bbcaac # v1.3
411411
with:
412412
version: 10
413413
- name: Configure OpenSSL env vars
@@ -417,7 +417,7 @@ jobs:
417417
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
418418
- name: 'Restore OpenSSL build'
419419
id: cache-openssl
420-
uses: actions/cache@v3
420+
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
421421
with:
422422
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
423423
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -428,7 +428,7 @@ jobs:
428428
run: |
429429
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
430430
- name: Configure ccache action
431-
uses: hendrikmuhs/[email protected]
431+
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
432432
- name: Configure CPython
433433
run: ./configure --with-address-sanitizer --without-pymalloc
434434
- name: Build CPython

.github/workflows/build_msi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
matrix:
3232
type: [x86, x64, arm64]
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
3535
- name: Build CPython installer
3636
run: .\Tools\msi\build.bat -${{ matrix.type }}

.github/workflows/doc.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838
runs-on: ubuntu-latest
3939
timeout-minutes: 60
4040
steps:
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
4242
- name: Register Sphinx problem matcher
4343
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
4444
- name: 'Set up Python'
45-
uses: actions/setup-python@v4
45+
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
4646
with:
4747
python-version: '3'
4848
cache: 'pip'
@@ -58,7 +58,7 @@ jobs:
5858
- name: 'Get list of changed files'
5959
if: github.event_name == 'pull_request'
6060
id: changed_files
61-
uses: Ana06/[email protected]
61+
uses: Ana06/get-changed-files@e0c398b7065a8d84700c471b6afc4116d1ba4e96 # v2.2.0
6262
with:
6363
filter: "Doc/**"
6464
- name: 'Build changed files in nit-picky mode'
@@ -87,9 +87,9 @@ jobs:
8787
runs-on: ubuntu-latest
8888
timeout-minutes: 60
8989
steps:
90-
- uses: actions/checkout@v3
90+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
9191
- name: 'Set up Python'
92-
uses: actions/setup-python@v4
92+
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
9393
with:
9494
python-version: '3.11' # known to work with Sphinx 3.2
9595
cache: 'pip'
@@ -105,10 +105,10 @@ jobs:
105105
runs-on: ubuntu-latest
106106
timeout-minutes: 60
107107
steps:
108-
- uses: actions/checkout@v3
108+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
109109
- name: Register Sphinx problem matcher
110110
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
111-
- uses: actions/cache@v3
111+
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
112112
with:
113113
path: ~/.cache/pip
114114
key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }}

.github/workflows/documentation-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
documentation-links:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: readthedocs/actions/preview@v1
24+
- uses: readthedocs/actions/preview@212a0c4917cd5db3f95d08786dd313666fe38cac # v1.1
2525
with:
2626
project-slug: "cpython-previews"
2727
single-version: "true"

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
timeout-minutes: 10
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-python@v4
18+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
19+
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
2020
with:
2121
python-version: "3.x"
22-
- uses: pre-commit/[email protected]
22+
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0

.github/workflows/mypy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
runs-on: ubuntu-latest
3030
timeout-minutes: 10
3131
steps:
32-
- uses: actions/checkout@v3
33-
- uses: actions/setup-python@v4
32+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
33+
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
3434
with:
3535
python-version: "3.x"
3636
cache: pip

.github/workflows/new-bugs-announce-notifier.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 10
1515
steps:
16-
- uses: actions/setup-node@v3
16+
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
1717
with:
1818
node-version: 14
1919
- run: npm install mailgun.js form-data
2020
- name: Send notification
21-
uses: actions/github-script@v6
21+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
2222
env:
2323
MAILGUN_API_KEY: ${{ secrets.MAILGUN_PYTHON_ORG_MAILGUN_KEY }}
2424
with:

.github/workflows/project-updater.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- { project: 32, label: sprint }
2424

2525
steps:
26-
- uses: actions/add-to-project@v0.1.0
26+
- uses: actions/add-to-project@31b3f3ccdc584546fc445612dec3f38ff5edb41c # v0.5.0
2727
with:
2828
project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
2929
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
timeout-minutes: 10
1616

1717
steps:
18-
- uses: mheap/github-action-required-labels@v4
18+
- uses: mheap/github-action-required-labels@422e4c352ef83db91089e6acfbf09d8725e08abc # v4
1919
with:
2020
mode: exactly
2121
count: 0

.github/workflows/stale.yml

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

1717
steps:
1818
- name: "Check PRs"
19-
uses: actions/stale@v8
19+
uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
2020
with:
2121
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222
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
@@ -25,8 +25,8 @@ jobs:
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 10
2727
steps:
28-
- uses: actions/checkout@v3
29-
- uses: actions/setup-python@v4
28+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
29+
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
3030
with:
3131
python-version: '3'
3232
- name: Compare checksum of bundled wheels to the ones published on PyPI

0 commit comments

Comments
 (0)