We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b945f6e commit 2282603Copy full SHA for 2282603
images/macos/scripts/build/install-codeql-bundle.sh
@@ -7,7 +7,8 @@
7
source ~/utils/utils.sh
8
9
# Retrieve the latest major version of the CodeQL Action to use in the base URL for downloading the bundle.
10
-releases=$(curl -s "https://api.github.com/repos/github/codeql-action/releases")
+[ -n "$API_PAT" ] && authString=(-H "Authorization: token ${API_PAT}")
11
+releases=$(curl "${authString[@]}" -s "https://api.github.com/repos/github/codeql-action/releases")
12
13
# Get the release tags starting with v[0-9] and sort them in descending order, then parse the first one to get the major version.
14
codeql_action_latest_major_version=$(echo "$releases" |
0 commit comments