Skip to content

Commit

Permalink
Update amazon-cloudwatch-observability-image-scan.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mann authored Dec 3, 2024
1 parent 342bf80 commit 02f6c9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
if: success() || failure()
# from https://stackoverflow.com/questions/61919141/read-json-file-in-github-actions
- run: |
SCAN_RESULT=$(jq -r '"**\(.ArtifactName)**:", ( .Results | .[] | select(.Vulnerabilities != null) | .Vulnerabilities[] | "- \(.VulnerabilityID)" ) | @text' ${{ steps.scan.outputs.json }})
SCAN_RESULT=$(jq -r '"\(.ArtifactName):", ( .Results | .[] | select(.Vulnerabilities != null) | .Vulnerabilities[] | "* \(.VulnerabilityID)" ) | @text' ${{ steps.scan.outputs.json }})
echo "SCAN_RESULT<<EOF" >> $GITHUB_ENV
echo "$SCAN_RESULT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
Expand Down

0 comments on commit 02f6c9a

Please sign in to comment.