Skip to content

Commit 48392f2

Browse files
committed
CI: hash-pin all action references
Signed-off-by: William Woodruff <william@yossarian.net>
1 parent 17070f4 commit 48392f2

24 files changed

+74
-78
lines changed

.github/workflows/add-issue-header.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
issues: write
2121
timeout-minutes: 5
2222
steps:
23-
- uses: actions/github-script@v8
23+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2424
with:
2525
# language=JavaScript
2626
script: |

.github/workflows/build.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: |
6565
apt update && apt install git -yq
6666
git config --global --add safe.directory "$GITHUB_WORKSPACE"
67-
- uses: actions/checkout@v6
67+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6868
with:
6969
fetch-depth: 1
7070
persist-credentials: false
@@ -101,10 +101,10 @@ jobs:
101101
needs: build-context
102102
if: needs.build-context.outputs.run-tests == 'true'
103103
steps:
104-
- uses: actions/checkout@v6
104+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
105105
with:
106106
persist-credentials: false
107-
- uses: actions/setup-python@v6
107+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
108108
with:
109109
python-version: '3.x'
110110
- name: Runner image version
@@ -283,7 +283,7 @@ jobs:
283283
SSLLIB_DIR: ${{ github.workspace }}/multissl/${{ matrix.ssllib.name }}/${{ matrix.ssllib.version }}
284284
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/${{ matrix.ssllib.name }}/${{ matrix.ssllib.version }}/lib
285285
steps:
286-
- uses: actions/checkout@v6
286+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
287287
with:
288288
persist-credentials: false
289289
- name: Runner image version
@@ -294,7 +294,7 @@ jobs:
294294
run: sudo ./.github/workflows/posix-deps-apt.sh
295295
- name: 'Restore SSL library build'
296296
id: cache-ssl-lib
297-
uses: actions/cache@v5
297+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
298298
with:
299299
path: ./multissl/${{ matrix.ssllib.name }}/${{ matrix.ssllib.version }}
300300
key: ${{ matrix.os }}-multissl-${{ matrix.ssllib.name }}-${{ matrix.ssllib.version }}
@@ -342,7 +342,7 @@ jobs:
342342

343343
runs-on: ${{ matrix.runs-on }}
344344
steps:
345-
- uses: actions/checkout@v6
345+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
346346
with:
347347
persist-credentials: false
348348
- name: Build and test
@@ -355,7 +355,7 @@ jobs:
355355
timeout-minutes: 60
356356
runs-on: macos-14
357357
steps:
358-
- uses: actions/checkout@v6
358+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
359359
with:
360360
persist-credentials: false
361361

@@ -393,7 +393,7 @@ jobs:
393393
OPENSSL_VER: 3.5.5
394394
PYTHONSTRICTEXTENSIONBUILD: 1
395395
steps:
396-
- uses: actions/checkout@v6
396+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
397397
with:
398398
persist-credentials: false
399399
- name: Register gcc problem matcher
@@ -407,7 +407,7 @@ jobs:
407407
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> "$GITHUB_ENV"
408408
- name: 'Restore OpenSSL build'
409409
id: cache-openssl
410-
uses: actions/cache@v5
410+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
411411
with:
412412
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
413413
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -454,7 +454,7 @@ jobs:
454454
./python -m venv "$VENV_LOC" && "$VENV_PYTHON" -m pip install -r "${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt"
455455
- name: 'Restore Hypothesis database'
456456
id: cache-hypothesis-database
457-
uses: actions/cache@v5
457+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
458458
with:
459459
path: ${{ env.CPYTHON_BUILDDIR }}/.hypothesis/
460460
key: hypothesis-database-${{ github.head_ref || github.run_id }}
@@ -481,7 +481,7 @@ jobs:
481481
-x test_subprocess \
482482
-x test_signal \
483483
-x test_sysconfig
484-
- uses: actions/upload-artifact@v7
484+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
485485
if: always()
486486
with:
487487
name: hypothesis-example-db
@@ -502,7 +502,7 @@ jobs:
502502
PYTHONSTRICTEXTENSIONBUILD: 1
503503
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
504504
steps:
505-
- uses: actions/checkout@v6
505+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
506506
with:
507507
persist-credentials: false
508508
- name: Runner image version
@@ -512,7 +512,7 @@ jobs:
512512
- name: Install dependencies
513513
run: sudo ./.github/workflows/posix-deps-apt.sh
514514
- name: Set up GCC-10 for ASAN
515-
uses: egor-tensin/setup-gcc@v2
515+
uses: egor-tensin/setup-gcc@a2861a8b8538f49cf2850980acccf6b05a1b2ae4 # v2.0
516516
with:
517517
version: 10
518518
- name: Configure OpenSSL env vars
@@ -522,7 +522,7 @@ jobs:
522522
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> "$GITHUB_ENV"
523523
- name: 'Restore OpenSSL build'
524524
id: cache-openssl
525-
uses: actions/cache@v5
525+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
526526
with:
527527
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
528528
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
@@ -569,7 +569,7 @@ jobs:
569569
needs: build-context
570570
if: needs.build-context.outputs.run-ubuntu == 'true'
571571
steps:
572-
- uses: actions/checkout@v6
572+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
573573
with:
574574
persist-credentials: false
575575
- name: Runner image version

.github/workflows/documentation-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
timeout-minutes: 5
2323

2424
steps:
25-
- uses: readthedocs/actions/preview@v1
25+
- uses: readthedocs/actions@b8bba1484329bda1a3abe986df7ebc80a8950333 # v1.5
2626
with:
2727
project-slug: "cpython-previews"
2828
single-version: "true"

.github/workflows/jit.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-24.04
3333
timeout-minutes: 60
3434
steps:
35-
- uses: actions/checkout@v6
35+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3636
with:
3737
persist-credentials: false
3838
- name: Build tier two interpreter
@@ -69,10 +69,10 @@ jobs:
6969
architecture: ARM64
7070
runner: windows-11-arm
7171
steps:
72-
- uses: actions/checkout@v6
72+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7373
with:
7474
persist-credentials: false
75-
- uses: actions/setup-python@v6
75+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
7676
with:
7777
python-version: '3.11'
7878
# PCbuild downloads LLVM automatically:
@@ -103,10 +103,10 @@ jobs:
103103
- target: aarch64-apple-darwin/clang
104104
runner: macos-26
105105
steps:
106-
- uses: actions/checkout@v6
106+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
107107
with:
108108
persist-credentials: false
109-
- uses: actions/setup-python@v6
109+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
110110
with:
111111
python-version: '3.11'
112112
- name: Install LLVM
@@ -146,10 +146,10 @@ jobs:
146146
- target: aarch64-unknown-linux-gnu/gcc
147147
runner: ubuntu-24.04-arm
148148
steps:
149-
- uses: actions/checkout@v6
149+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
150150
with:
151151
persist-credentials: false
152-
- uses: actions/setup-python@v6
152+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
153153
with:
154154
python-version: '3.11'
155155
- name: Build
@@ -182,10 +182,10 @@ jobs:
182182
use_clang: true
183183
run_tests: false
184184
steps:
185-
- uses: actions/checkout@v6
185+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
186186
with:
187187
persist-credentials: false
188-
- uses: actions/setup-python@v6
188+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
189189
with:
190190
python-version: '3.11'
191191
- name: Build

.github/workflows/lint.yml

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

2121
steps:
22-
- uses: actions/checkout@v6
22+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323
with:
2424
persist-credentials: false
25-
- uses: j178/prek-action@v1
25+
- uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1.1

.github/workflows/mypy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ jobs:
6565
"Tools/peg_generator",
6666
]
6767
steps:
68-
- uses: actions/checkout@v6
68+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6969
with:
7070
persist-credentials: false
71-
- uses: actions/setup-python@v6
71+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
7272
with:
7373
python-version: "3.13"
7474
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@v6
16+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
1717
with:
1818
node-version: 20
1919
- run: npm install mailgun.js form-data
2020
- name: Send notification
21-
uses: actions/github-script@v8
21+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2222
env:
2323
MAILGUN_API_KEY: ${{ secrets.MAILGUN_PYTHON_ORG_MAILGUN_KEY }}
2424
with:

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Check there's no DO-NOT-MERGE
18-
uses: mheap/github-action-required-labels@v5
18+
uses: mheap/github-action-required-labels@0ac283b4e65c1fb28ce6079dea5546ceca98ccbe # v5.5.2
1919
with:
2020
mode: exactly
2121
count: 0
@@ -33,7 +33,7 @@ jobs:
3333
steps:
3434
# Check that the PR is not awaiting changes from the author due to previous review.
3535
- name: Check there's no required changes
36-
uses: mheap/github-action-required-labels@v5
36+
uses: mheap/github-action-required-labels@0ac283b4e65c1fb28ce6079dea5546ceca98ccbe # v5.5.2
3737
with:
3838
mode: exactly
3939
count: 0
@@ -42,7 +42,7 @@ jobs:
4242
awaiting change review
4343
- id: is-feature
4444
name: Check whether this PR is a feature (contains a "type-feature" label)
45-
uses: mheap/github-action-required-labels@v5
45+
uses: mheap/github-action-required-labels@0ac283b4e65c1fb28ce6079dea5546ceca98ccbe # v5.5.2
4646
with:
4747
mode: exactly
4848
count: 1
@@ -53,7 +53,7 @@ jobs:
5353
- id: awaiting-merge
5454
if: steps.is-feature.outputs.status == 'success'
5555
name: Check for complete review
56-
uses: mheap/github-action-required-labels@v5
56+
uses: mheap/github-action-required-labels@0ac283b4e65c1fb28ce6079dea5546ceca98ccbe # v5.5.2
5757
with:
5858
mode: exactly
5959
count: 1

.github/workflows/reusable-check-c-api-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 5
1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919
with:
2020
persist-credentials: false
21-
- uses: actions/setup-python@v6
21+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2222
with:
2323
python-version: '3.x'
2424
- name: Check for undocumented C APIs

.github/workflows/reusable-cifuzz.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ jobs:
2121
steps:
2222
- name: Build fuzzers (${{ inputs.sanitizer }})
2323
id: build
24-
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
24+
uses: google/oss-fuzz@ed23f8af80ff82b25ca67cd9b101e690b8897b3f # master
2525
with:
2626
oss-fuzz-project-name: ${{ inputs.oss-fuzz-project-name }}
2727
sanitizer: ${{ inputs.sanitizer }}
2828
- name: Run fuzzers (${{ inputs.sanitizer }})
29-
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
29+
uses: google/oss-fuzz@ed23f8af80ff82b25ca67cd9b101e690b8897b3f # master
3030
with:
3131
fuzz-seconds: 600
3232
oss-fuzz-project-name: ${{ inputs.oss-fuzz-project-name }}
3333
output-sarif: true
3434
sanitizer: ${{ inputs.sanitizer }}
3535
- name: Upload crash
3636
if: failure() && steps.build.outcome == 'success'
37-
uses: actions/upload-artifact@v7
37+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
3838
with:
3939
name: ${{ inputs.sanitizer }}-artifacts
4040
path: ./out/artifacts
4141
- name: Upload SARIF
4242
if: always() && steps.build.outcome == 'success'
43-
uses: github/codeql-action/upload-sarif@v4
43+
uses: github/codeql-action@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
4444
with:
4545
sarif_file: cifuzz-sarif/results.sarif
4646
checkout_path: cifuzz-sarif

0 commit comments

Comments
 (0)