File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -406,3 +406,51 @@ jobs:
406
406
with :
407
407
name : release-images
408
408
path : ./release-images
409
+
410
+ trivy-scan :
411
+ runs-on : ubuntu-20.04
412
+ needs : package-linux-arm64
413
+
414
+ steps :
415
+ - name : Checkout code
416
+ uses : actions/checkout@v2
417
+
418
+ - name : Download release package
419
+ uses : actions/download-artifact@v2
420
+ with :
421
+ name : release-packages
422
+ path : ./release-packages
423
+
424
+ - name : Build Docker image
425
+ run : ./ci/steps/build-docker-image.sh
426
+
427
+ - name : Run Trivy vulnerability scanner in repo mode
428
+ uses : aquasecurity/trivy-action@master
429
+ with :
430
+ scan-type : " fs"
431
+ ignore-unfixed : true
432
+ format : " template"
433
+ template : " @/contrib/sarif.tpl"
434
+ output : " trivy-repo-results.sarif"
435
+ severity : " CRITICAL"
436
+
437
+ - name : Run Trivy vulnerability scanner in image mode
438
+ uses : aquasecurity/trivy-action@master
439
+ with :
440
+ image-ref : " codercom/code-server:${{ github.sha }}"
441
+ scan-type : " image"
442
+ ignore-unfixed : true
443
+ format : " template"
444
+ template : " @/contrib/sarif.tpl"
445
+ output : " trivy-image-results.sarif"
446
+ severity : " CRITICAL"
447
+
448
+ - name : Upload Trivy scan results to GitHub Security tab
449
+ uses : github/codeql-action/upload-sarif@v1
450
+ with :
451
+ sarif_file : " trivy-repo-results.sarif"
452
+
453
+ - name : Upload Trivy scan results to GitHub Security tab
454
+ uses : github/codeql-action/upload-sarif@v1
455
+ with :
456
+ sarif_file : " trivy-image-results.sarif"
You can’t perform that action at this time.
0 commit comments