Commit bc9b97b 1 parent 51922b8 commit bc9b97b Copy full SHA for bc9b97b
File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ Scan an image uploaded to ECR and fail if vulnerabilities are found.
34
34
| low | Number of low vulnerabilities detected. |
35
35
| informational | Number of informational vulnerabilities detected. |
36
36
| unknown | Number of unknown vulnerabilities detected. |
37
+ | findingsDetails | Details of findings. |
37
38
38
39
# # Required ECR permissions
39
40
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ outputs:
28
28
description : Number of unknown severity vulnerabilities detected.
29
29
total :
30
30
description : Total number of vulnerabilities detected.
31
+ findingsDetails :
32
+ description : Details of findings.
31
33
runs :
32
34
using : " docker"
33
35
image : " Dockerfile"
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ const main = async () => {
219
219
const indeterminate = counts . UNDEFINED || 0
220
220
const ignored = ignoredFindings . length
221
221
const total = critical + high + medium + low + informational + indeterminate
222
- core . setOutput ( 'findingsDetails' , findingsDetails . toString ( ) )
222
+ core . setOutput ( 'findingsDetails' , JSON . stringify ( findingsDetails ) )
223
223
core . setOutput ( 'critical' , critical . toString ( ) )
224
224
core . setOutput ( 'high' , high . toString ( ) )
225
225
core . setOutput ( 'medium' , medium . toString ( ) )
You can’t perform that action at this time.
0 commit comments