Skip to content

Commit f575ea9

Browse files
authored
Skip image scan if the image is not pushed to ECR (#159)
*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.
1 parent 4c47ae7 commit f575ea9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/artifacts_build/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ runs:
9494
load: ${{ inputs.load_image }}
9595

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

0 commit comments

Comments
 (0)