Skip to content

Commit bc9b97b

Browse files
andrzej3393alexjurkiewicz
authored andcommitted
JSON.stringify findings details output + minimal docs
1 parent 51922b8 commit bc9b97b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Scan an image uploaded to ECR and fail if vulnerabilities are found.
3434
| low | Number of low vulnerabilities detected. |
3535
| informational | Number of informational vulnerabilities detected. |
3636
| unknown | Number of unknown vulnerabilities detected. |
37+
| findingsDetails | Details of findings. |
3738

3839
## Required ECR permissions
3940

action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ outputs:
2828
description: Number of unknown severity vulnerabilities detected.
2929
total:
3030
description: Total number of vulnerabilities detected.
31+
findingsDetails:
32+
description: Details of findings.
3133
runs:
3234
using: "docker"
3335
image: "Dockerfile"

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const main = async () => {
219219
const indeterminate = counts.UNDEFINED || 0
220220
const ignored = ignoredFindings.length
221221
const total = critical + high + medium + low + informational + indeterminate
222-
core.setOutput('findingsDetails', findingsDetails.toString())
222+
core.setOutput('findingsDetails', JSON.stringify(findingsDetails))
223223
core.setOutput('critical', critical.toString())
224224
core.setOutput('high', high.toString())
225225
core.setOutput('medium', medium.toString())

0 commit comments

Comments
 (0)