File tree Expand file tree Collapse file tree 1 file changed +10
-18
lines changed
Expand file tree Collapse file tree 1 file changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -13,27 +13,19 @@ permissions:
1313 contents : read
1414
1515jobs :
16- trivy -scan :
17- name : Trivy Security Scan
16+ grype -scan :
17+ name : Grype Security Scan
1818 runs-on : ubuntu-latest
1919 steps :
2020 - name : Checkout code
2121 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2222
23- - name : Run Trivy vulnerability scanner in repo mode
24- uses : aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
23+ - name : Run Grype vulnerability scanner
24+ id : grype-scan
25+ uses : anchore/scan-action@7037fa011853d5a11690026fb85feee79f4c946c # v7.3.2
2526 with :
26- scan-type : ' fs'
27- ignore-unfixed : true
28- format : ' table'
29- exit-code : ' 1'
30- severity : ' CRITICAL,HIGH'
31-
32- - name : Run Trivy vulnerability scanner in IaC mode
33- uses : aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
34- with :
35- scan-type : ' config'
36- hide-progress : false
37- format : ' table'
38- exit-code : ' 1'
39- severity : ' CRITICAL,HIGH'
27+ path : " ."
28+ only-fixed : true
29+ output-format : " table"
30+ fail-build : true
31+ severity-cutoff : " high"
You can’t perform that action at this time.
0 commit comments