@@ -182,8 +182,8 @@ jobs:
182182      - name : Run Trivy Repository Scan 
183183        uses : aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 
184184        with :
185+           config : trivy.yaml 
185186          scan-type : repo 
186-           severity : HIGH,CRITICAL 
187187
188188  scan-ci-dependencies :
189189    name : Run CI Denendencies Scan 
@@ -197,8 +197,8 @@ jobs:
197197      - name : Run Trivy Filesystem Scan 
198198        uses : aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 
199199        with :
200+           config : trivy.yaml 
200201          scan-type : fs 
201-           severity : HIGH,CRITICAL 
202202
203203  build-staging-images :
204204    name : Build Staging Images 
@@ -269,16 +269,16 @@ jobs:
269269      - name : Scan backend image 
270270        uses : aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 
271271        with :
272+           config : trivy.yaml 
272273          exit-code : 1 
273274          image-ref : ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-backend:staging 
274-           severity : HIGH,CRITICAL 
275275
276276      - name : Scan frontend image 
277277        uses : aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 
278278        with :
279+           config : trivy.yaml 
279280          exit-code : 1 
280281          image-ref : ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-frontend:staging 
281-           severity : HIGH,CRITICAL 
282282
283283  deploy-staging-nest :
284284    name : Deploy Nest Staging 
@@ -433,16 +433,16 @@ jobs:
433433      - name : Scan backend image 
434434        uses : aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 
435435        with :
436+           config : trivy.yaml 
436437          exit-code : 1 
437438          image-ref : ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-backend:production 
438-           severity : HIGH,CRITICAL 
439439
440440      - name : Scan frontend image 
441441        uses : aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 
442442        with :
443+           config : trivy.yaml 
443444          exit-code : 1 
444445          image-ref : ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-frontend:production 
445-           severity : HIGH,CRITICAL 
446446
447447  deploy-production-nest :
448448    name : Deploy Nest to Production 
0 commit comments