From 17484fcdbe83eb19f066a153ac613493b9b839fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Dziedziul?= Date: Tue, 27 Feb 2024 09:16:52 +0100 Subject: [PATCH] Fix verification of docker image in RH catalog There were API changes --- .github/scripts/publish-rhel.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/scripts/publish-rhel.sh b/.github/scripts/publish-rhel.sh index 6af7e619..0d6dbc78 100755 --- a/.github/scripts/publish-rhel.sh +++ b/.github/scripts/publish-rhel.sh @@ -49,7 +49,9 @@ wait_for_container_scan() local SCAN_STATUS=$(echo "$IMAGE" | jq -r '.data[0].container_grades.status') local IMAGE_CERTIFIED=$(echo "$IMAGE" | jq -r '.data[0].certified') - if [[ $SCAN_STATUS == "in progress" ]]; then + if [[ $SCAN_STATUS == "pending" ]]; then + echo "Scanning pending, waiting..." + elif [[ $SCAN_STATUS == "in progress" ]]; then echo "Scanning in progress, waiting..." elif [[ $SCAN_STATUS == "null" ]]; then echo "Image is still not present in the registry!"