diff --git a/scripts/ci/jobs/diff-dumps.sh b/scripts/ci/jobs/diff-dumps.sh index 3141c0ba7..4b77fc6c3 100755 --- a/scripts/ci/jobs/diff-dumps.sh +++ b/scripts/ci/jobs/diff-dumps.sh @@ -119,12 +119,12 @@ upload_v4_versioned_vuln() { fi cd /tmp/offline-dump version_file="out/RELEASE_VERSION.txt" - versions=$(grep -oE '^[0-9]+\.[0-9]+' "$version_file" | sort -V) + versions=$(grep -oE '^[0-9]+\.[0-9]+' "$version_file" | sort -V | uniq) while IFS= read -r version; do echo "$version" if curl --silent --show-error --max-time 60 --retry 3 -o "scanner-v4-defs-${version}.zip" "https://storage.googleapis.com/scanner-v4-test/offline-bundles/scanner-v4-defs-${version}.zip"; then zip scanner-vulns-${version}.zip scanner-defs.zip k8s-istio.zip scanner-v4-defs-${version}.zip - "${cmd[@]}" gsutil cp scanner-vulns-${version}.zip gs://scanner-support-public/offline/v1/${version}/scanner-vulns-${version}.zip + gsutil cp scanner-vulns-${version}.zip gs://scanner-support-public/offline/v1/${version}/scanner-vulns-${version}.zip else echo "Failed to download scanner-v4-defs-${version}.zip, skipping..." fi