Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
daynewlee committed Feb 12, 2024
1 parent 789acab commit 831fc9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ci/jobs/diff-dumps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 831fc9b

Please sign in to comment.