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:
153
153
with :
154
154
sarif_file : ' snyk.sarif'
155
155
scan :
156
- name : " Trivy"
156
+ name : " Trivy (sarif) "
157
157
runs-on : ubuntu-latest
158
158
needs : build
159
159
steps :
@@ -179,3 +179,25 @@ jobs:
179
179
uses : github/codeql-action/upload-sarif@v3
180
180
with :
181
181
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/[email protected]
201
+ with :
202
+ image-ref : ${{ env.IMAGE_NAME }}:${{ github.sha }}
203
+ format : ' table'
Original file line number Diff line number Diff line change 2
2
FROM node:22.5.1-alpine3.20 AS base
3
3
4
4
RUN apk add --update --no-cache make
5
+ RUN apk upgrade --update --no-cache openssl libcrypto3 libssl3 # FIX CVE-2024-5535
5
6
6
7
ENV WORKDIR=/app
7
8
WORKDIR ${WORKDIR}
You can’t perform that action at this time.
0 commit comments