From 9036952d6442dd730d6515c07a9baf9d4f6350fc Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Thu, 4 Apr 2024 14:31:11 -0400 Subject: [PATCH] chore: pass max time to download canary This should help by highlighting slow downloads as failures in the github UI. Signed-off-by: Will Murphy --- .github/scripts/download-listing-and-db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/download-listing-and-db.sh b/.github/scripts/download-listing-and-db.sh index 57ceaad8..47c689a1 100755 --- a/.github/scripts/download-listing-and-db.sh +++ b/.github/scripts/download-listing-and-db.sh @@ -7,10 +7,10 @@ test_download() { url=$1 # download with IPv6 - curl -vsL6 -w "@$timing_file" $url -o /dev/null + curl -vsL6 -w "@$timing_file" --max-time 30 $url -o /dev/null # download with IPv4 - curl -vsL4 -w "@$timing_file" $url -o /dev/null + curl -vsL4 -w "@$timing_file" --max-time 120 $url -o /dev/null } test_download https://toolbox-data.anchore.io/grype/databases/listing.json