Skip to content

Commit

Permalink
chore: pass max time to download canary (#281)
Browse files Browse the repository at this point in the history
This should help by highlighting slow downloads as failures in the
github UI.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode authored Apr 4, 2024
1 parent ecb8cc9 commit 185e3f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/download-listing-and-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 185e3f8

Please sign in to comment.