Skip to content

Commit f11c2b3

Browse files
trivy scan report upload
1 parent ad8e7ce commit f11c2b3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/pc.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,17 @@ jobs:
145145
uses: aquasecurity/trivy-action@0.28.0
146146
with:
147147
image-ref: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/petclinic
148-
format: json
148+
format: 'json'
149149
output: trivy-report.json
150150
exit-code: '1'
151151
ignore-unfixed: true
152152
vuln-type: 'os,library'
153153
severity: 'CRITICAL,HIGH'
154+
- name: Upload trivy report
155+
uses: actions/upload-artifact@v4
156+
with:
157+
name: trivy-report.json
158+
path: trivy-report.json
154159
# push-image:
155160
# name: Build and push to registry
156161
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)