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

@ -19,6 +19,7 @@ export async function initCodeQL(
tempDir: string,
toolsDir: string,
mode: util.Mode,
variant: util.GitHubVariant,
logger: Logger
): Promise<{ codeql: CodeQL; toolsVersion: string }> {
logger.startGroup("Setup CodeQL tools");
@ -28,6 +29,7 @@ export async function initCodeQL(
tempDir,
toolsDir,
mode,
variant,
logger
);
await codeql.printVersion();