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 13ba5d6 commit 55f6717
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 -rs '"**\(.ArtifactName)**:\n", ( .Results | .[] | select(.Vulnerabilities != null) | .Vulnerabilities[] | "- \(.VulnerabilityID)" ) | @text' ${{ steps.scan.outputs.json }})
SCAN_RESULT=$(SCAN_RESULT=$(jq -r '"**\(.ArtifactName)**:\n", ( .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 55f6717

Please sign in to comment.