diff --git a/.github/workflows/amazon-cloudwatch-observability-image-scan.yaml b/.github/workflows/amazon-cloudwatch-observability-image-scan.yaml index a9b505d..3fc1ede 100644 --- a/.github/workflows/amazon-cloudwatch-observability-image-scan.yaml +++ b/.github/workflows/amazon-cloudwatch-observability-image-scan.yaml @@ -90,7 +90,9 @@ jobs: 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 - - run: | + if: success() || failure() + - if: success() || failure() + run: | echo '${{ env.SCAN_RESULT }}' - name: Send a saved artifact to a Slack workflow if: success() || failure()