Skip to content

Commit 0ddd4ed

Browse files
committed
ci: debugging vuln check
1 parent d3f1fcc commit 0ddd4ed

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/vuln-scan.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ jobs:
8787
# Action reference: https://github.com/aquasecurity/trivy-action
8888
- name: Scan latest published image
8989
id: scan_1
90-
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
90+
uses: aquasecurity/trivy-action@0.30.0
9191
with:
92+
version: v0.53.0
9293
image-ref: ${{ steps.image.outputs.spec }}
9394
format: json # ref: https://github.com/aquasecurity/trivy#save-the-results-as-json
9495
output: tmp/scan_1.json
@@ -112,12 +113,14 @@ jobs:
112113
- name: Scan rebuilt image
113114
id: scan_2
114115
if: steps.rebuild.outcome == 'success'
115-
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
116+
uses: aquasecurity/trivy-action@0.30.0
116117
with:
118+
version: v0.53.0
117119
image-ref: rebuilt-image
118120
format: json # ref: https://github.com/aquasecurity/trivy#save-the-results-as-json
119121
output: tmp/scan_2.json
120122
ignore-unfixed: true
123+
exit-code: "0"
121124

122125
# Analyze the scan reports. If they differ, we want to proceed and create
123126
# or update a PR. We use a hash from the final scan report as an
@@ -171,8 +174,9 @@ jobs:
171174
172175
- name: Describe vulnerabilities
173176
if: steps.rebuild.outcome == 'success'
174-
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
177+
uses: aquasecurity/trivy-action@0.30.0
175178
with:
179+
version: v0.53.0
176180
image-ref: rebuilt-image
177181
format: table
178182
ignore-unfixed: true

0 commit comments

Comments
 (0)