When downloading the CodeQL bundle, only use the GitHub AE endpoint on GitHub AE, and check it first.

This commit is contained in:
Chris Gavin 2021-03-07 09:27:19 +00:00
parent bde489c632
commit bb51ece0b4
No known key found for this signature in database
GPG key ID: 07F950B80C27E4DA
15 changed files with 191 additions and 78 deletions

View file

@ -101,9 +101,7 @@ async function run() {
};
const gitHubVersion = await getGitHubVersion(apiDetails);
if (gitHubVersion !== undefined) {
checkGitHubVersionInRange(gitHubVersion, "actions", logger);
}
checkGitHubVersionInRange(gitHubVersion, "actions", logger);
try {
actionsUtil.prepareLocalRunEnvironment();
@ -129,6 +127,7 @@ async function run() {
actionsUtil.getTemporaryDirectory(),
actionsUtil.getRequiredEnvParam("RUNNER_TOOL_CACHE"),
"actions",
gitHubVersion.type,
logger
);
codeql = initCodeQLResult.codeql;