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 60bd8d8 commit 2ebe3eb
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/amazon-cloudwatch-observability-image-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,9 @@ jobs:
image: ${{ steps.registry.outputs.result }}/${{ steps.repository.outputs.result }}:${{ steps.tag.outputs.result }}
severity_threshold: HIGH
annotations: true
# from https://stackoverflow.com/questions/61919141/read-json-file-in-github-actions
- run: echo "SCAN_RESULT=$(jq -c . < ${{ steps.scan.outputs.json }})" >> $GITHUB_ENV
if: success() || failure()
- if: success() || failure()
run: |
echo '${{ env.SCAN_RESULT }}'
- name: Send a saved artifact to a Slack workflow
if: success() || failure()
uses: slackapi/[email protected]
-
name: Upload SARIF file
if: ${{ steps.scan.outputs.sarif != '' }}
uses: github/codeql-action/upload-sarif@v2
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
results: '${{ env.SCAN_RESULT }}'
sarif_file: ${{ steps.scan.outputs.sarif }}

0 comments on commit 2ebe3eb

Please sign in to comment.