Skip to content

Commit 7f5a8ec

Browse files
committed
Fix warning[artipacked]: credential persistence through GitHub Actions artifacts
1 parent 596c49e commit 7f5a8ec

13 files changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
- uses: actions/checkout@v4
5959
with:
6060
fetch-depth: 1
61+
persist-credentials: false
6162
- name: Runner image version
6263
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
6364
- name: Check Autoconf and aclocal versions
@@ -94,6 +95,8 @@ jobs:
9495
if: needs.check_source.outputs.run_tests == 'true'
9596
steps:
9697
- uses: actions/checkout@v4
98+
with:
99+
persist-credentials: false
97100
- uses: actions/setup-python@v5
98101
with:
99102
python-version: '3.x'
@@ -268,6 +271,8 @@ jobs:
268271
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
269272
steps:
270273
- uses: actions/checkout@v4
274+
with:
275+
persist-credentials: false
271276
- name: Runner image version
272277
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
273278
- name: Restore config.cache
@@ -328,6 +333,8 @@ jobs:
328333
PYTHONSTRICTEXTENSIONBUILD: 1
329334
steps:
330335
- uses: actions/checkout@v4
336+
with:
337+
persist-credentials: false
331338
- name: Register gcc problem matcher
332339
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
333340
- name: Install Dependencies
@@ -446,6 +453,8 @@ jobs:
446453
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
447454
steps:
448455
- uses: actions/checkout@v4
456+
with:
457+
persist-credentials: false
449458
- name: Runner image version
450459
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
451460
- name: Restore config.cache

.github/workflows/jit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
timeout-minutes: 90
3333
steps:
3434
- uses: actions/checkout@v4
35+
with:
36+
persist-credentials: false
3537
- name: Build tier two interpreter
3638
run: |
3739
./configure --enable-experimental-jit=interpreter --with-pydebug
@@ -85,6 +87,8 @@ jobs:
8587
runner: ${{ github.repository_owner == 'python' && 'ubuntu-24.04-aarch64' || 'ubuntu-24.04' }}
8688
steps:
8789
- uses: actions/checkout@v4
90+
with:
91+
persist-credentials: false
8892
- uses: actions/setup-python@v5
8993
with:
9094
python-version: '3.11'
@@ -138,6 +142,8 @@ jobs:
138142
- 19
139143
steps:
140144
- uses: actions/checkout@v4
145+
with:
146+
persist-credentials: false
141147
- uses: actions/setup-python@v5
142148
with:
143149
python-version: '3.11'

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v4
23+
with:
24+
persist-credentials: false
2325
- uses: actions/setup-python@v5
2426
with:
2527
python-version: "3.x"

.github/workflows/mypy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
timeout-minutes: 10
5252
steps:
5353
- uses: actions/checkout@v4
54+
with:
55+
persist-credentials: false
5456
- uses: actions/setup-python@v5
5557
with:
5658
python-version: "3.13"

.github/workflows/reusable-change-detection.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
- run: >-
6262
echo '${{ github.event_name }}'
6363
- uses: actions/checkout@v4
64+
with:
65+
persist-credentials: false
6466
- name: Check for source changes
6567
id: check
6668
run: |

.github/workflows/reusable-docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- name: 'Check out latest PR branch commit'
2929
uses: actions/checkout@v4
3030
with:
31+
persist-credentials: false
3132
ref: >-
3233
${{
3334
github.event_name == 'pull_request'
@@ -81,6 +82,8 @@ jobs:
8182
timeout-minutes: 60
8283
steps:
8384
- uses: actions/checkout@v4
85+
with:
86+
persist-credentials: false
8487
- name: 'Set up Python'
8588
uses: actions/setup-python@v5
8689
with:
@@ -99,6 +102,8 @@ jobs:
99102
timeout-minutes: 60
100103
steps:
101104
- uses: actions/checkout@v4
105+
with:
106+
persist-credentials: false
102107
- uses: actions/cache@v4
103108
with:
104109
path: ~/.cache/pip

.github/workflows/reusable-macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
runs-on: ${{ inputs.os }}
3030
steps:
3131
- uses: actions/checkout@v4
32+
with:
33+
persist-credentials: false
3234
- name: Runner image version
3335
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
3436
- name: Restore config.cache

.github/workflows/reusable-tsan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
timeout-minutes: 60
2626
steps:
2727
- uses: actions/checkout@v4
28+
with:
29+
persist-credentials: false
2830
- name: Runner image version
2931
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
3032
- name: Restore config.cache

.github/workflows/reusable-ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
TERM: linux
2929
steps:
3030
- uses: actions/checkout@v4
31+
with:
32+
persist-credentials: false
3133
- name: Register gcc problem matcher
3234
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
3335
- name: Install dependencies

.github/workflows/reusable-wasi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
CROSS_BUILD_WASI: cross-build/wasm32-wasip1
2121
steps:
2222
- uses: actions/checkout@v4
23+
with:
24+
persist-credentials: false
2325
# No problem resolver registered as one doesn't currently exist for Clang.
2426
- name: "Install wasmtime"
2527
uses: bytecodealliance/actions/wasmtime/setup@v1

0 commit comments

Comments
 (0)