From b06da59aba5150536f1d0df8b0670845e3f9713d Mon Sep 17 00:00:00 2001 From: ilia-shipitsin <125650415+ilia-shipitsin@users.noreply.github.com> Date: Thu, 19 Oct 2023 15:47:41 +0200 Subject: [PATCH] [macos] add reties to CodeQL download step (#8582) Co-authored-by: Henry Mercer --- images/macos/provision/core/codeql-bundle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/macos/provision/core/codeql-bundle.sh b/images/macos/provision/core/codeql-bundle.sh index 032c18b2d..12044bdd8 100644 --- a/images/macos/provision/core/codeql-bundle.sh +++ b/images/macos/provision/core/codeql-bundle.sh @@ -2,8 +2,8 @@ source ~/utils/utils.sh # Retrieve the CLI version of the latest CodeQL bundle. -base_url="$(curl -fsSL https://raw.githubusercontent.com/github/codeql-action/v2/src/defaults.json)" -bundle_version="$(echo "$base_url" | jq -r '.cliVersion')" +download_with_retries https://raw.githubusercontent.com/github/codeql-action/v2/src/defaults.json "/tmp" "codeql-defaults.json" +bundle_version="$(jq -r '.cliVersion' /tmp/codeql-defaults.json)" bundle_tag_name="codeql-bundle-v$bundle_version" echo "Downloading CodeQL bundle $bundle_version..."