8
8
workflow_dispatch :
9
9
workflow_call :
10
10
11
- permissions :
12
- id-token : write
11
+ permissions : {}
13
12
14
13
jobs :
15
14
selftest :
15
+ permissions :
16
+ id-token : write
16
17
strategy :
17
18
matrix :
18
19
os :
25
26
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
26
27
steps :
27
28
- uses : actions/checkout@v4
29
+ with :
30
+ persist-credentials : false
28
31
- uses : actions/setup-python@v5
29
32
if : ${{ matrix.os != 'ubuntu-latest' }}
30
33
with :
41
44
[[ -f ./test/artifact.txt.sigstore.json ]] || exit 1
42
45
43
46
selftest-runner-python :
47
+ permissions :
48
+ id-token : write
44
49
strategy :
45
50
matrix :
46
51
os :
51
56
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
52
57
steps :
53
58
- uses : actions/checkout@v4
59
+ with :
60
+ persist-credentials : false
54
61
- name : Sign artifact and publish signature
55
62
uses : ./
56
63
id : sigstore-python
63
70
[[ -f ./test/artifact.txt.sigstore.json ]] || exit 1
64
71
65
72
selftest-whitespace :
73
+ permissions :
74
+ id-token : write
66
75
strategy :
67
76
matrix :
68
77
os :
73
82
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
74
83
steps :
75
84
- uses : actions/checkout@v4
85
+ with :
86
+ persist-credentials : false
76
87
- uses : actions/setup-python@v5
77
88
if : ${{ matrix.os != 'ubuntu-latest' }}
78
89
with :
94
105
[[ -f ./test/more\ white\ space.txt ]] || exit 1
95
106
96
107
selftest-xfail-invalid-inputs :
108
+ permissions :
109
+ id-token : write
97
110
runs-on : ubuntu-latest
98
111
strategy :
99
112
matrix :
@@ -105,6 +118,8 @@ jobs:
105
118
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
106
119
steps :
107
120
- uses : actions/checkout@v4
121
+ with :
122
+ persist-credentials : false
108
123
- name : Sign artifact and publish signature
109
124
continue-on-error : true
110
125
uses : ./
@@ -122,10 +137,14 @@ jobs:
122
137
[[ "${XFAIL}" == "true" ]] || { >&2 echo "expected step to fail"; exit 1; }
123
138
124
139
selftest-staging :
140
+ permissions :
141
+ id-token : write
125
142
runs-on : ubuntu-latest
126
143
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
127
144
steps :
128
145
- uses : actions/checkout@v4
146
+ with :
147
+ persist-credentials : false
129
148
- name : Sign artifact and publish signature
130
149
uses : ./
131
150
id : sigstore-python
@@ -138,10 +157,14 @@ jobs:
138
157
[[ -f ./test/artifact.txt.sigstore.json ]] || exit 1
139
158
140
159
selftest-glob :
160
+ permissions :
161
+ id-token : write
141
162
runs-on : ubuntu-latest
142
163
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
143
164
steps :
144
165
- uses : actions/checkout@v4
166
+ with :
167
+ persist-credentials : false
145
168
- name : Sign artifacts and publish signatures
146
169
uses : ./
147
170
id : sigstore-python
@@ -156,12 +179,16 @@ jobs:
156
179
[[ -f ./test/artifact2.txt.sigstore.json ]] || exit 1
157
180
158
181
selftest-xfail-glob-input-expansion :
182
+ permissions :
183
+ id-token : write
159
184
runs-on : ubuntu-latest
160
185
env :
161
186
TEST_DIR : test
162
187
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
163
188
steps :
164
189
- uses : actions/checkout@v4
190
+ with :
191
+ persist-credentials : false
165
192
- name : Sign artifacts and publish signatures
166
193
continue-on-error : true
167
194
uses : ./
@@ -182,10 +209,14 @@ jobs:
182
209
[[ "${XFAIL}" == "true" ]] || { >&2 echo "expected step to fail"; exit 1; }
183
210
184
211
selftest-glob-multiple :
212
+ permissions :
213
+ id-token : write
185
214
runs-on : ubuntu-latest
186
215
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
187
216
steps :
188
217
- uses : actions/checkout@v4
218
+ with :
219
+ persist-credentials : false
189
220
- name : Sign artifacts and publish signatures
190
221
uses : ./
191
222
id : sigstore-python
@@ -205,10 +236,14 @@ jobs:
205
236
[[ -f ./test/subdir/hello3.txt.sigstore.json ]] || exit 1
206
237
207
238
selftest-upload-artifacts :
239
+ permissions :
240
+ id-token : write
208
241
runs-on : ubuntu-latest
209
242
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
210
243
steps :
211
244
- uses : actions/checkout@v4
245
+ with :
246
+ persist-credentials : false
212
247
- name : Sign artifact and publish signature
213
248
uses : ./
214
249
id : sigstore-python
@@ -228,10 +263,14 @@ jobs:
228
263
working-directory : ./test/uploaded
229
264
230
265
selftest-verify :
266
+ permissions :
267
+ id-token : write
231
268
runs-on : ubuntu-latest
232
269
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
233
270
steps :
234
271
- uses : actions/checkout@v4
272
+ with :
273
+ persist-credentials : false
235
274
- name : Sign artifact and publish signature
236
275
uses : ./
237
276
id : sigstore-python
@@ -244,6 +283,8 @@ jobs:
244
283
internal-be-careful-debug : true
245
284
246
285
selftest-xfail-verify-missing-options :
286
+ permissions :
287
+ id-token : write
247
288
runs-on : ubuntu-latest
248
289
strategy :
249
290
matrix :
@@ -268,6 +309,8 @@ jobs:
268
309
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
269
310
steps :
270
311
- uses : actions/checkout@v4
312
+ with :
313
+ persist-credentials : false
271
314
- name : Sign artifact and publish signature
272
315
continue-on-error : true
273
316
uses : ./
@@ -290,10 +333,14 @@ jobs:
290
333
[[ "${XFAIL}" == "true" ]] || { >&2 echo "expected step to fail"; exit 1; }
291
334
292
335
selftest-identity-token :
336
+ permissions :
337
+ id-token : write
293
338
runs-on : ubuntu-latest
294
339
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
295
340
steps :
296
341
- uses : actions/checkout@v4
342
+ with :
343
+ persist-credentials : false
297
344
- name : Get OIDC token
298
345
id : get-oidc-token
299
346
run : |
0 commit comments