File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 87
87
# Action reference: https://github.com/aquasecurity/trivy-action
88
88
- name : Scan latest published image
89
89
id : scan_1
90
- uses : aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
90
+ uses : aquasecurity/trivy-action@0.30.0
91
91
with :
92
+ version : v0.53.0
92
93
image-ref : ${{ steps.image.outputs.spec }}
93
94
format : json # ref: https://github.com/aquasecurity/trivy#save-the-results-as-json
94
95
output : tmp/scan_1.json
@@ -112,12 +113,14 @@ jobs:
112
113
- name : Scan rebuilt image
113
114
id : scan_2
114
115
if : steps.rebuild.outcome == 'success'
115
- uses : aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
116
+ uses : aquasecurity/trivy-action@0.30.0
116
117
with :
118
+ version : v0.53.0
117
119
image-ref : rebuilt-image
118
120
format : json # ref: https://github.com/aquasecurity/trivy#save-the-results-as-json
119
121
output : tmp/scan_2.json
120
122
ignore-unfixed : true
123
+ exit-code : " 0"
121
124
122
125
# Analyze the scan reports. If they differ, we want to proceed and create
123
126
# or update a PR. We use a hash from the final scan report as an
@@ -171,8 +174,9 @@ jobs:
171
174
172
175
- name : Describe vulnerabilities
173
176
if : steps.rebuild.outcome == 'success'
174
- uses : aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
177
+ uses : aquasecurity/trivy-action@0.30.0
175
178
with :
179
+ version : v0.53.0
176
180
image-ref : rebuilt-image
177
181
format : table
178
182
ignore-unfixed : true
You can’t perform that action at this time.
0 commit comments