File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ jobs:
157
157
with :
158
158
sarif_file : ' snyk.sarif'
159
159
scan :
160
- name : " Trivy"
160
+ name : " Trivy (sarif) "
161
161
runs-on : ubuntu-latest
162
162
needs : build
163
163
permissions :
@@ -187,3 +187,25 @@ jobs:
187
187
uses : github/codeql-action/upload-sarif@v3
188
188
with :
189
189
sarif_file : ' trivy-results.sarif'
190
+
191
+ report :
192
+ name : " Trivy (report)"
193
+ runs-on : ubuntu-latest
194
+ needs : build
195
+ steps :
196
+ - name : Download artifact
197
+ uses : actions/download-artifact@v4
198
+ with :
199
+ name : ${{ env.ARTIFACT_NAME }}_prod
200
+ path : /tmp/
201
+
202
+ - name : Load image
203
+ run : |
204
+ docker load --input /tmp/${{ env.ARTIFACT_NAME }}_prod.tar
205
+ docker image ls -a
206
+
207
+ - name : Run Trivy vulnerability scanner
208
+ uses :
aquasecurity/[email protected]
209
+ with :
210
+ image-ref : ${{ env.IMAGE_NAME }}:${{ github.sha }}
211
+ format : ' table'
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ pylint==3.2.5
19
19
pyright == 1.1.372
20
20
pytest == 8.2.2
21
21
pytest-cov == 5.0.0
22
+ setuptools == 71.0.4 # not directly required, pinned by Snyk to avoid a vulnerability
22
23
tomli == 2.0.1
23
24
tomlkit == 0.13.0
24
25
typing_extensions == 4.12.2
25
26
wrapt == 1.16.0
26
- setuptools >= 70.0.0 # not directly required, pinned by Snyk to avoid a vulnerability
27
27
zipp >= 3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
You can’t perform that action at this time.
0 commit comments