Skip to content

Commit b06da59

Browse files
[macos] add reties to CodeQL download step (#8582)
Co-authored-by: Henry Mercer <henry.mercer@me.com>
1 parent 9a9a185 commit b06da59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

images/macos/provision/core/codeql-bundle.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
source ~/utils/utils.sh
33

44
# Retrieve the CLI version of the latest CodeQL bundle.
5-
base_url="$(curl -fsSL https://raw.githubusercontent.com/github/codeql-action/v2/src/defaults.json)"
6-
bundle_version="$(echo "$base_url" | jq -r '.cliVersion')"
5+
download_with_retries https://raw.githubusercontent.com/github/codeql-action/v2/src/defaults.json "/tmp" "codeql-defaults.json"
6+
bundle_version="$(jq -r '.cliVersion' /tmp/codeql-defaults.json)"
77
bundle_tag_name="codeql-bundle-v$bundle_version"
88

99
echo "Downloading CodeQL bundle $bundle_version..."

0 commit comments

Comments
 (0)