Skip to content

Commit

Permalink
Skip image scan if the image is not pushed to ECR (#159)
Browse files Browse the repository at this point in the history
*Issue #, if available:*
Otherwise the workflow fails. example:
https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/8692589074/job/23837547147

*Description of changes:*


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
  • Loading branch information
srprash authored Apr 15, 2024
1 parent 4c47ae7 commit f575ea9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/artifacts_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ runs:
load: ${{ inputs.load_image }}

- name: Perform image scan
if: ${{ inputs.push_image == true || inputs.push_image == 'true' }}
uses: ./.github/actions/image_scan
with:
image-ref: ${{ inputs.image_uri_with_tag }}
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'

0 comments on commit f575ea9

Please sign in to comment.