Skip to content

Commit de588aa

Browse files
Fixed image scanning script
1 parent 60e7a33 commit de588aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/scripts/check_ecr_image_scan_results.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ for i in {1..30}; do
4545
--repository-name "$REPOSITORY_NAME" \
4646
--image-id imageDigest="$IMAGE_DIGEST" \
4747
--query 'imageScanStatus.status' \
48-
--output text 2>/dev/null || echo "NONE")
48+
--output text | grep -v "None" | head -n 1 2>/dev/null || echo "NONE"| grep -oE '^[^ ]+' | grep -v "None")
4949

5050
if [[ "$STATUS" == "COMPLETE" ]]; then
5151
echo "ECR scan completed."

0 commit comments

Comments
 (0)