File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ jobs:
153153 with :
154154 sarif_file : ' snyk.sarif'
155155 scan :
156- name : " Trivy"
156+ name : " Trivy (sarif) "
157157 runs-on : ubuntu-latest
158158 needs : build
159159 steps :
@@ -179,3 +179,25 @@ jobs:
179179 uses : github/codeql-action/upload-sarif@v3
180180 with :
181181 sarif_file : ' trivy-results.sarif'
182+
183+ report :
184+ name : " Trivy (report)"
185+ runs-on : ubuntu-latest
186+ needs : build
187+ steps :
188+ - name : Download artifact
189+ uses : actions/download-artifact@v4
190+ with :
191+ name : ${{ env.ARTIFACT_NAME }}_prod
192+ path : /tmp/
193+
194+ - name : Load image
195+ run : |
196+ docker load --input /tmp/${{ env.ARTIFACT_NAME }}_prod.tar
197+ docker image ls -a
198+
199+ - name : Run Trivy vulnerability scanner
200+ uses : aquasecurity/trivy-action@0.24.0
201+ with :
202+ image-ref : ${{ env.IMAGE_NAME }}:${{ github.sha }}
203+ format : ' table'
Original file line number Diff line number Diff line change 22FROM node:22.5.1-alpine3.20 AS base
33
44RUN apk add --update --no-cache make
5+ RUN apk upgrade --update --no-cache openssl libcrypto3 libssl3 # FIX CVE-2024-5535
56
67ENV WORKDIR=/app
78WORKDIR ${WORKDIR}
You can’t perform that action at this time.
0 commit comments