@@ -133,13 +133,15 @@ jobs:
133
133
path : .image.env
134
134
- name : Scan rqlite for vulnerabilities
135
135
id : scan
136
- uses : ./.github/workflows /scan-image-grype.yml
136
+ uses : ./.github/actions /scan-image
137
137
with :
138
- image : " docker.io/kotsadm/rqlite:${{ steps.dotenv.outputs.RQLITE_TAG }} "
139
- severity-cutoff : ' medium '
140
- fail-build : false
138
+ category-prefix : ' image-scan- '
139
+ image-ref : " docker.io/kotsadm/rqlite:${{ steps.dotenv.outputs.RQLITE_TAG }} "
140
+ only-fixed : ' true '
141
141
output-file : ' rqlite-scan-output.sarif'
142
- only-fixed : true
142
+ retention-days : ' 90'
143
+ severity-cutoff : ' medium'
144
+ upload-sarif : ' true'
143
145
- name : Print scan report
144
146
run : cat rqlite-scan-output.sarif
145
147
- name : Upload scan report
@@ -160,13 +162,16 @@ jobs:
160
162
path : .image.env
161
163
- name : Scan minio for vulnerabilities
162
164
id : scan
163
- uses : ./.github/workflows /scan-image-grype.yml
165
+ uses : ./.github/actions /scan-image
164
166
with :
165
- image : " docker.io/kotsadm/minio:${{ steps.dotenv.outputs.MINIO_TAG }}"
166
- severity-cutoff : ' medium'
167
- fail-build : false
167
+ category-prefix : ' image-scan-'
168
+ fail-build : ' false'
169
+ image-ref : " docker.io/kotsadm/minio:${{ steps.dotenv.outputs.MINIO_TAG }}"
170
+ only-fixed : ' true'
168
171
output-file : ' minio-scan-output.sarif'
169
- only-fixed : true
172
+ retention-days : ' 90'
173
+ severity-cutoff : ' medium'
174
+ upload-sarif : ' true'
170
175
- name : Print scan report
171
176
run : cat minio-scan-output.sarif
172
177
- name : Upload scan report
@@ -187,13 +192,16 @@ jobs:
187
192
path : .image.env
188
193
- name : Scan dex for vulnerabilities
189
194
id : scan
190
- uses : ./.github/workflows /scan-image-grype.yml
195
+ uses : ./.github/actions /scan-image
191
196
with :
192
- image : " docker.io/kotsadm/dex:${{ steps.dotenv.outputs.DEX_TAG }}"
193
- severity-cutoff : ' medium'
194
- fail-build : false
197
+ category-prefix : ' image-scan-'
198
+ fail-build : ' false'
199
+ image-ref : " docker.io/kotsadm/dex:${{ steps.dotenv.outputs.DEX_TAG }}"
200
+ only-fixed : ' true'
195
201
output-file : ' dex-scan-output.sarif'
196
- only-fixed : true
202
+ retention-days : ' 90'
203
+ severity-cutoff : ' medium'
204
+ upload-sarif : ' true'
197
205
- name : Print scan report
198
206
run : cat dex-scan-output.sarif
199
207
- name : Upload scan report
@@ -210,13 +218,16 @@ jobs:
210
218
uses : actions/checkout@v4
211
219
- name : Scan kurl-proxy for vulnerabilities
212
220
id : scan
213
- uses : ./.github/workflows /scan-image-grype.yml
221
+ uses : ./.github/actions /scan-image
214
222
with :
215
- image : ' docker.io/kotsadm/kurl-proxy:alpha'
216
- severity-cutoff : ' medium'
217
- fail-build : false
223
+ category-prefix : ' image-scan-'
224
+ fail-build : ' false'
225
+ image-ref : ' docker.io/kotsadm/kurl-proxy:alpha'
226
+ only-fixed : ' true'
218
227
output-file : ' kurl-proxy-scan-output.sarif'
219
- only-fixed : true
228
+ retention-days : ' 90'
229
+ severity-cutoff : ' medium'
230
+ upload-sarif : ' true'
220
231
- name : Print scan report
221
232
run : cat kurl-proxy-scan-output.sarif
222
233
- name : Upload scan report
@@ -237,13 +248,16 @@ jobs:
237
248
path : .image.env
238
249
- name : Scan replicated/local-volume-provider for vulnerabilities
239
250
id : scan
240
- uses : ./.github/workflows /scan-image-grype.yml
251
+ uses : ./.github/actions /scan-image
241
252
with :
242
- image : " docker.io/replicated/local-volume-provider:${{ steps.dotenv.outputs.LVP_TAG }}"
243
- severity-cutoff : ' medium'
244
- fail-build : false
253
+ category-prefix : ' image-scan-'
254
+ fail-build : ' false'
255
+ image-ref : " docker.io/replicated/local-volume-provider:${{ steps.dotenv.outputs.LVP_TAG }}"
256
+ only-fixed : ' true'
245
257
output-file : ' scan-output.sarif'
246
- only-fixed : true
258
+ retention-days : ' 90'
259
+ severity-cutoff : ' medium'
260
+ upload-sarif : ' true'
247
261
- name : Print scan report
248
262
run : cat scan-output.sarif
249
263
- name : Upload scan report
@@ -260,21 +274,23 @@ jobs:
260
274
uses : actions/checkout@v4
261
275
- name : Scan kotsadm for vulnerabilities
262
276
id : scan
263
- uses : ./.github/workflows /scan-image-grype.yml
277
+ uses : ./.github/actions /scan-image
264
278
with :
265
- image : ' docker.io/kotsadm/kotsadm:alpha'
266
- severity-cutoff : ' medium'
267
- fail-build : false
279
+ category-prefix : ' image-scan-'
280
+ fail-build : ' true'
281
+ image-ref : ' docker.io/kotsadm/kotsadm:alpha'
282
+ only-fixed : ' true'
268
283
output-file : ' kotsadm-scan-output.sarif'
269
- only-fixed : true
284
+ retention-days : ' 90'
285
+ severity-cutoff : ' medium'
286
+ upload-sarif : ' true'
270
287
- name : Print scan report
271
288
run : cat kotsadm-scan-output.sarif
272
289
- name : Upload scan report
273
290
uses : github/codeql-action/upload-sarif@v3
274
291
with :
275
292
sarif_file : kotsadm-scan-output.sarif
276
293
277
-
278
294
scan_kotsadm_migrations :
279
295
runs-on : ubuntu-latest
280
296
needs : [build-migrations]
@@ -283,16 +299,20 @@ jobs:
283
299
uses : actions/checkout@v4
284
300
- name : Scan migrations for vulnerabilities
285
301
id : scan
286
- uses : ./.github/workflows /scan-image-grype.yml
302
+ uses : ./.github/actions /scan-image
287
303
with :
288
- image : ' docker.io/kotsadm/kotsadm-migrations:alpha'
289
- severity-cutoff : ' medium'
290
- fail-build : false
304
+ category-prefix : ' image-scan-'
305
+ fail-build : ' true'
306
+ image-ref : ' docker.io/kotsadm/kotsadm-migrations:alpha'
307
+ only-fixed : ' true'
291
308
output-file : ' kotsadm-migration-scan-output.sarif'
292
- only-fixed : true
309
+ retention-days : ' 90'
310
+ severity-cutoff : ' medium'
311
+ upload-sarif : ' true'
293
312
- name : Print scan report
294
313
run : cat kotsadm-migration-scan-output.sarif
295
314
- name : Upload scan report
296
315
uses : github/codeql-action/upload-sarif@v3
297
316
with :
298
317
sarif_file : kotsadm-migration-scan-output.sarif
318
+
0 commit comments