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