File tree Expand file tree Collapse file tree 2 files changed +22
-56
lines changed Expand file tree Collapse file tree 2 files changed +22
-56
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: CICD Pipeline
22on :
33 push :
44 branches : [ 'main' ]
5+ pull_request :
56
67jobs :
78 build :
2223 ~/.gradle/wrapper
2324 - run : ( ./gradlew build -x test )
2425 name : " Executing build"
25-
2626 unit-test :
2727 runs-on : ubuntu-latest
2828 needs : build
8383 - run : ( ./gradlew dependencyCheckAnalyze -PUseNVDKey )
8484 name : " Executing dependency vulnerability checks"
8585 env :
86- NVD_API_KEY : ${{ secrets.NVD_API_KEY }}
86+ NVD_API_KEY : ${{ secrets.NVD_API_KEY }}
87+ sast-code-snyk :
88+ runs-on : ubuntu-latest
89+ needs : build
90+ steps :
91+ - uses : actions/checkout@v4
92+ - name : Run Snyk to static code analysis for vulnerabilities
93+ uses : snyk/actions/node@master
94+ env :
95+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}§
96+ sast-dockerfile-trivy :
97+ runs-on : ubuntu-latest
98+ needs : build
99+ steps :
100+ - uses : actions/checkout@v4
101+ - name : Run Trivy vulnerability scanner in IaC mode
102+ uses :
aquasecurity/[email protected] 103+ with :
104+ scan-type : ' config'
105+ exit-code : ' 1'
106+ severity : ' CRITICAL,HIGH'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments