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 78c2a62 commit c9a6c42
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
severity_threshold: HIGH
annotations: true
# from https://stackoverflow.com/questions/61919141/read-json-file-in-github-actions
- run: echo "SCAN_RESULT=$(jq -cRs . ${{ steps.scan.outputs.json }})" >> $GITHUB_ENV
- run: echo "SCAN_RESULT=$(jq -s . ${{ steps.scan.outputs.json }})" >> $GITHUB_ENV
if: success() || failure()
- if: success() || failure()
run: |
Expand All @@ -101,4 +101,5 @@ jobs:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
results: '${{ env.SCAN_RESULT }}'
results: >-
${{ env.SCAN_RESULT }}

0 comments on commit c9a6c42

Please sign in to comment.