Skip to content

Commit 0ab88bb

Browse files
committed
Disable persistance of credentials in workflow checkoutsDD
1 parent 657432b commit 0ab88bb

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/codeql.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
with:
27+
persist-credentials: false
2628
- name: Initialize CodeQL
2729
uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
2830
with:

.github/workflows/manual.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
runs-on: ${{ inputs.OS }}
2121
steps:
2222
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
2325
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2426
with:
2527
python-version: |

.github/workflows/tests.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2626
steps:
2727
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
with:
29+
persist-credentials: false
2830
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2931
with:
3032
python-version: ${{ matrix.python }}
@@ -64,6 +66,8 @@ jobs:
6466
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
6567
steps:
6668
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
69+
with:
70+
persist-credentials: false
6771
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6872
with:
6973
python-version: ${{ matrix.python }}
@@ -79,6 +83,8 @@ jobs:
7983
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
8084
steps:
8185
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
86+
with:
87+
persist-credentials: false
8288
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
8389
with:
8490
python-version: ${{ matrix.python }}
@@ -94,6 +100,8 @@ jobs:
94100
python: ["3.12", "3.14"]
95101
steps:
96102
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
103+
with:
104+
persist-credentials: false
97105
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
98106
with:
99107
python-version: ${{ matrix.python }}
@@ -105,6 +113,8 @@ jobs:
105113
runs-on: ubuntu-latest
106114
steps:
107115
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116+
with:
117+
persist-credentials: false
108118
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
109119
with:
110120
python-version: "3.12"
@@ -116,6 +126,8 @@ jobs:
116126
runs-on: ubuntu-latest
117127
steps:
118128
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
129+
with:
130+
persist-credentials: false
119131
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
120132
with:
121133
python-version: "3.12"
@@ -148,6 +160,8 @@ jobs:
148160
runs-on: ubuntu-latest
149161
steps:
150162
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
163+
with:
164+
persist-credentials: false
151165
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
152166
with:
153167
python-version: "3.12"
@@ -168,6 +182,8 @@ jobs:
168182
needs: [build-package]
169183
steps:
170184
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
185+
with:
186+
persist-credentials: false
171187
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
172188
with:
173189
python-version: "3.12"
@@ -192,6 +208,8 @@ jobs:
192208
runs-on: ubuntu-latest
193209
steps:
194210
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
211+
with:
212+
persist-credentials: false
195213
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
196214
with:
197215
python-version: "3.12"
@@ -204,6 +222,8 @@ jobs:
204222
runs-on: ubuntu-latest
205223
steps:
206224
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
225+
with:
226+
persist-credentials: false
207227
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
208228
with:
209229
python-version: "3.12"
@@ -222,6 +242,8 @@ jobs:
222242
id-token: write
223243
steps:
224244
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
245+
with:
246+
persist-credentials: false
225247
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
226248
with:
227249
merge-multiple: true
@@ -247,6 +269,7 @@ jobs:
247269
steps:
248270
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
249271
with:
272+
persist-credentials: false
250273
fetch-depth: 0 # Shallow clone disabled for a better relevancy of analysis
251274
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
252275
with:

0 commit comments

Comments
 (0)