From 5eba74a3c9d10972f85c7321b0267bda389b35be Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Thu, 5 Jan 2023 16:54:18 +0000 Subject: [PATCH 1/2] Refactor CodeQL setup --- lib/codeql.js | 180 +++++++++++++++++------------- lib/codeql.js.map | 2 +- lib/init.js | 4 +- lib/init.js.map | 2 +- src/codeql.ts | 276 +++++++++++++++++++++++++++++----------------- src/init.ts | 4 +- 6 files changed, 282 insertions(+), 186 deletions(-) diff --git a/lib/codeql.js b/lib/codeql.js index 84d48e1853..244b289ee4 100644 --- a/lib/codeql.js +++ b/lib/codeql.js @@ -196,95 +196,123 @@ async function getCodeQLBundleDownloadURL(apiDetails, variant, logger) { } return `https://github.com/${exports.CODEQL_DEFAULT_ACTION_REPOSITORY}/releases/download/${CODEQL_BUNDLE_VERSION}/${codeQLBundleName}`; } +async function getCodeQLSource(toolsInput, bypassToolcache, apiDetails, variant, logger) { + var _a; + if (toolsInput && toolsInput !== "latest" && !toolsInput.startsWith("http")) { + return { + codeqlTarPath: toolsInput, + sourceType: "local", + toolsVersion: "local", + }; + } + const forceLatestReason = + // We use the special value of 'latest' to prioritize the version in the + // defaults over any pinned cached version. + toolsInput === "latest" + ? '"tools: latest" was requested' + : // If the user hasn't requested a particular CodeQL version, then bypass + // the toolcache when the appropriate feature is enabled. This + // allows us to quickly rollback a broken bundle that has made its way + // into the toolcache. + toolsInput === undefined && bypassToolcache + ? "a specific version of CodeQL was not requested and the bypass toolcache feature is enabled" + : undefined; + const forceLatest = forceLatestReason !== undefined; + if (forceLatest) { + logger.debug(`Forcing the latest version of the CodeQL tools since ${forceLatestReason}.`); + } + const codeqlURL = forceLatest ? undefined : toolsInput; + const requestedSemVer = convertToSemVer(getCodeQLURLVersion(codeqlURL || `/${CODEQL_BUNDLE_VERSION}/`), logger); + // If we find the specified version, we always use that. + const codeqlFolder = toolcache.find("CodeQL", requestedSemVer); + if (codeqlFolder) { + return { + codeqlFolder, + sourceType: "toolcache", + toolsVersion: requestedSemVer, + }; + } + // If we don't find the requested version, in some cases we may allow a + // different version to save download time if the version hasn't been + // specified explicitly (in which case we always honor it). + if (!codeqlURL && !forceLatest) { + const codeqlVersions = toolcache.findAllVersions("CodeQL"); + if (codeqlVersions.length === 1 && (0, util_1.isGoodVersion)(codeqlVersions[0])) { + const tmpCodeqlFolder = toolcache.find("CodeQL", codeqlVersions[0]); + if (fs.existsSync(path.join(tmpCodeqlFolder, "pinned-version"))) { + logger.debug(`CodeQL in cache overriding the default ${CODEQL_BUNDLE_VERSION}`); + return { + codeqlFolder: tmpCodeqlFolder, + sourceType: "toolcache", + toolsVersion: codeqlVersions[0], + }; + } + } + } + return { + codeqlURL: codeqlURL || + (await getCodeQLBundleDownloadURL(apiDetails, variant, logger)), + semanticVersion: requestedSemVer, + sourceType: "download", + toolsVersion: ((_a = semver.prerelease(requestedSemVer)) === null || _a === void 0 ? void 0 : _a.join(".")) || requestedSemVer, + }; +} +async function downloadCodeQL(codeqlURL, semanticVersion, apiDetails, tempDir, logger) { + const parsedCodeQLURL = new URL(codeqlURL); + const searchParams = new URLSearchParams(parsedCodeQLURL.search); + const headers = { + accept: "application/octet-stream", + }; + // We only want to provide an authorization header if we are downloading + // from the same GitHub instance the Action is running on. + // This avoids leaking Enterprise tokens to dotcom. + // We also don't want to send an authorization header if there's already a token provided in the URL. + if (codeqlURL.startsWith(`${apiDetails.url}/`) && + !searchParams.has("token")) { + logger.debug("Downloading CodeQL bundle with token."); + headers.authorization = `token ${apiDetails.auth}`; + } + else { + logger.debug("Downloading CodeQL bundle without token."); + } + logger.info(`Downloading CodeQL tools from ${codeqlURL}. This may take a while.`); + const dest = path.join(tempDir, (0, uuid_1.v4)()); + const finalHeaders = Object.assign({ "User-Agent": "CodeQL Action" }, headers); + const codeqlPath = await toolcache.downloadTool(codeqlURL, dest, undefined, finalHeaders); + logger.debug(`CodeQL bundle download to ${codeqlPath} complete.`); + const codeqlExtracted = await toolcache.extractTar(codeqlPath); + return await toolcache.cacheDir(codeqlExtracted, "CodeQL", semanticVersion); +} /** * Set up CodeQL CLI access. * - * @param codeqlURL + * @param toolsInput * @param apiDetails * @param tempDir * @param variant - * @param features + * @param bypassToolcache * @param logger * @param checkVersion Whether to check that CodeQL CLI meets the minimum * version requirement. Must be set to true outside tests. * @returns a { CodeQL, toolsVersion } object. */ -async function setupCodeQL(codeqlURL, apiDetails, tempDir, variant, bypassToolcache, logger, checkVersion) { +async function setupCodeQL(toolsInput, apiDetails, tempDir, variant, bypassToolcache, logger, checkVersion) { try { - const forceLatestReason = - // We use the special value of 'latest' to prioritize the version in the - // defaults over any pinned cached version. - codeqlURL === "latest" - ? '"tools: latest" was requested' - : // If the user hasn't requested a particular CodeQL version, then bypass - // the toolcache when the appropriate feature is enabled. This - // allows us to quickly rollback a broken bundle that has made its way - // into the toolcache. - codeqlURL === undefined && bypassToolcache - ? "a specific version of CodeQL was not requested and the bypass toolcache feature is enabled" - : undefined; - const forceLatest = forceLatestReason !== undefined; - if (forceLatest) { - logger.debug(`Forcing the latest version of the CodeQL tools since ${forceLatestReason}.`); - codeqlURL = undefined; - } + const source = await getCodeQLSource(toolsInput, bypassToolcache, apiDetails, variant, logger); let codeqlFolder; - let codeqlURLVersion; - if (codeqlURL && !codeqlURL.startsWith("http")) { - codeqlFolder = await toolcache.extractTar(codeqlURL); - codeqlURLVersion = "local"; - } - else { - codeqlURLVersion = getCodeQLURLVersion(codeqlURL || `/${CODEQL_BUNDLE_VERSION}/`); - const codeqlURLSemVer = convertToSemVer(codeqlURLVersion, logger); - // If we find the specified version, we always use that. - codeqlFolder = toolcache.find("CodeQL", codeqlURLSemVer); - // If we don't find the requested version, in some cases we may allow a - // different version to save download time if the version hasn't been - // specified explicitly (in which case we always honor it). - if (!codeqlFolder && !codeqlURL && !forceLatest) { - const codeqlVersions = toolcache.findAllVersions("CodeQL"); - if (codeqlVersions.length === 1 && (0, util_1.isGoodVersion)(codeqlVersions[0])) { - const tmpCodeqlFolder = toolcache.find("CodeQL", codeqlVersions[0]); - if (fs.existsSync(path.join(tmpCodeqlFolder, "pinned-version"))) { - logger.debug(`CodeQL in cache overriding the default ${CODEQL_BUNDLE_VERSION}`); - codeqlFolder = tmpCodeqlFolder; - codeqlURLVersion = codeqlVersions[0]; - } - } - } - if (codeqlFolder) { + switch (source.sourceType) { + case "local": + codeqlFolder = await toolcache.extractTar(source.codeqlTarPath); + break; + case "toolcache": + codeqlFolder = source.codeqlFolder; logger.debug(`CodeQL found in cache ${codeqlFolder}`); - } - else { - if (!codeqlURL) { - codeqlURL = await getCodeQLBundleDownloadURL(apiDetails, variant, logger); - } - const parsedCodeQLURL = new URL(codeqlURL); - const searchParams = new URLSearchParams(parsedCodeQLURL.search); - const headers = { - accept: "application/octet-stream", - }; - // We only want to provide an authorization header if we are downloading - // from the same GitHub instance the Action is running on. - // This avoids leaking Enterprise tokens to dotcom. - // We also don't want to send an authorization header if there's already a token provided in the URL. - if (codeqlURL.startsWith(`${apiDetails.url}/`) && - !searchParams.has("token")) { - logger.debug("Downloading CodeQL bundle with token."); - headers.authorization = `token ${apiDetails.auth}`; - } - else { - logger.debug("Downloading CodeQL bundle without token."); - } - logger.info(`Downloading CodeQL tools from ${codeqlURL}. This may take a while.`); - const dest = path.join(tempDir, (0, uuid_1.v4)()); - const finalHeaders = Object.assign({ "User-Agent": "CodeQL Action" }, headers); - const codeqlPath = await toolcache.downloadTool(codeqlURL, dest, undefined, finalHeaders); - logger.debug(`CodeQL bundle download to ${codeqlPath} complete.`); - const codeqlExtracted = await toolcache.extractTar(codeqlPath); - codeqlFolder = await toolcache.cacheDir(codeqlExtracted, "CodeQL", codeqlURLSemVer); - } + break; + case "download": + codeqlFolder = await downloadCodeQL(source.codeqlURL, source.semanticVersion, apiDetails, tempDir, logger); + break; + default: + (0, util_1.assertNever)(source); } let codeqlCmd = path.join(codeqlFolder, "codeql", "codeql"); if (process.platform === "win32") { @@ -294,7 +322,7 @@ async function setupCodeQL(codeqlURL, apiDetails, tempDir, variant, bypassToolca throw new Error(`Unsupported platform: ${process.platform}`); } cachedCodeQL = await getCodeQLForCmd(codeqlCmd, checkVersion); - return { codeql: cachedCodeQL, toolsVersion: codeqlURLVersion }; + return { codeql: cachedCodeQL, toolsVersion: source.toolsVersion }; } catch (e) { logger.error(e instanceof Error ? e : new Error(String(e))); diff --git a/lib/codeql.js.map b/lib/codeql.js.map index 21ca22bd84..07b2bad6db 100644 --- a/lib/codeql.js.map +++ b/lib/codeql.js.map @@ -1 +1 @@ -{"version":3,"file":"codeql.js","sourceRoot":"","sources":["../src/codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,2CAA6B;AAE7B,yEAA2D;AAC3D,+DAAiD;AACjD,sEAAuD;AACvD,8CAAgC;AAChC,+CAAiC;AACjC,+BAAoC;AAEpC,iDAAsD;AACtD,kDAAoC;AAEpC,0DAA4C,CAAC,2CAA2C;AACxF,mDAAgD;AAEhD,2CAAyD;AAEzD,yEAAoE;AACpE,iDAGwB;AACxB,6CAA+B;AAC/B,iCAAuC;AAuBvC,MAAa,sBAAuB,SAAQ,KAAK;IAC/C,YACE,GAAW,EACX,IAAc,EACd,QAAgB,EAChB,KAAa,EACN,MAAc;QAErB,KAAK,CACH,oBAAoB,GAAG,mBAAmB,IAAI;kBAClC,QAAQ;QAClB,KAAK,EAAE,CACV,CAAC;QANK,WAAM,GAAN,MAAM,CAAQ;IAOvB,CAAC;CACF;AAdD,wDAcC;AAsKD;;;GAGG;AACH,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC;AACxC,QAAA,gCAAgC,GAAG,sBAAsB,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAEvC;;;;GAIG;AACH,MAAM,gCAAgC,GAAG,OAAO,CAAC;AACjD,MAAM,gCAAgC,GAAG,QAAQ,CAAC;AACrC,QAAA,2BAA2B,GAA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,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE;YACxC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACxC;aAAM;YACL,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,UAAU;gBACnC,eAAe,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;YAC3C,eAAe,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACtD;KACF;IAED,EAAE,CAAC,aAAa,CAAC,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7D,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,SAAS,WAAW,CAAC,GAAQ;IAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/lib/init.js b/lib/init.js index 820f2e5e1f..9ae7b59dc6 100644 --- a/lib/init.js +++ b/lib/init.js @@ -30,9 +30,9 @@ const configUtils = __importStar(require("./config-utils")); const tracer_config_1 = require("./tracer-config"); const util = __importStar(require("./util")); const util_1 = require("./util"); -async function initCodeQL(codeqlURL, apiDetails, tempDir, variant, bypassToolcache, logger) { +async function initCodeQL(toolsInput, apiDetails, tempDir, variant, bypassToolcache, logger) { logger.startGroup("Setup CodeQL tools"); - const { codeql, toolsVersion } = await (0, codeql_1.setupCodeQL)(codeqlURL, apiDetails, tempDir, variant, bypassToolcache, logger, true); + const { codeql, toolsVersion } = await (0, codeql_1.setupCodeQL)(toolsInput, apiDetails, tempDir, variant, bypassToolcache, logger, true); await codeql.printVersion(); logger.endGroup(); return { codeql, toolsVersion }; diff --git a/lib/init.js.map b/lib/init.js.map index 0353057512..01427d90ea 100644 --- a/lib/init.js.map +++ b/lib/init.js.map @@ -1 +1 @@ -{"version":3,"file":"init.js","sourceRoot":"","sources":["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X;aAAM;YACL,MAAM,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE;gBACpE,IAAI;gBACJ,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;gBAChC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;aAC/B,CAAC,CAAC,IAAI,EAAE,CAAC;SACX;KACF;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClB,MAAM,CAAC,OAAO,CACZ,gFAAgF,CAAC,IAAI;YACnF,qGAAqG;YACrG,oGAAoG;YACpG,iDAAiD,CACpD,CAAC;QACF,OAAO;KACR;IACD,MAAM,CAAC,QAAQ,EAAE,CAAC;AACpB,CAAC;AAzCD,8CAyCC"} \ No newline at end of file +{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,yEAA2D;AAC3D,kEAAoD;AAEpD,gEAAkD;AAElD,qCAA2E;AAC3E,4DAA8C;AAI9C,mDAAwE;AACxE,6CAA+B;AAC/B,iCAA4C;AAErC,KAAK,UAAU,UAAU,CAC9B,UAA8B,EAC9B,UAA4B,EAC5B,OAAe,EACf,OAA2B,EAC3B,eAAwB,EACxB,MAAc;IAEd,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACxC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,IAAA,oBAAW,EAChD,UAAU,EACV,UAAU,EACV,OAAO,EACP,OAAO,EACP,eAAe,EACf,MAAM,EACN,IAAI,CACL,CAAC;IACF,MAAM,MAAM,CAAC,YAAY,EAAE,CAAC;IAC5B,MAAM,CAAC,QAAQ,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;AAClC,CAAC;AArBD,gCAqBC;A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aAAa,EAAE,mBAAmB,CAAC;aAC9C,CAAC,CAAC,IAAI,EAAE,CAAC;SACX;aAAM;YACL,MAAM,IAAI,UAAU,CAAC,UAAU,CAC7B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAC7C,CAAC,IAAI,EAAE,CAAC;SACV;QACD,MAAM,MAAM,GAAG,0BAA0B,CAAC;QAC1C,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;YAChC,MAAM,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;gBAC/D,IAAI;gBACJ,IAAI;gBACJ,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;gBAChC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;aAC/B,CAAC,CAAC,IAAI,EAAE,CAAC;SACX;aAAM;YACL,MAAM,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE;gBACpE,IAAI;gBACJ,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;gBAChC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;aAC/B,CAAC,CAAC,IAAI,EAAE,CAAC;SACX;KACF;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClB,MAAM,CAAC,OAAO,CACZ,gFAAgF,CAAC,IAAI;YACnF,qGAAqG;YACrG,oGAAoG;YACpG,iDAAiD,CACpD,CAAC;QACF,OAAO;KACR;IACD,MAAM,CAAC,QAAQ,EAAE,CAAC;AACpB,CAAC;AAzCD,8CAyCC"} \ No newline at end of file diff --git a/src/codeql.ts b/src/codeql.ts index 69df5844f4..cb1e16693f 100644 --- a/src/codeql.ts +++ b/src/codeql.ts @@ -23,7 +23,7 @@ import { getTrapCachingExtractorConfigArgsForLang, } from "./trap-caching"; import * as util from "./util"; -import { isGoodVersion } from "./util"; +import { assertNever, isGoodVersion } from "./util"; type Options = Array; @@ -403,21 +403,162 @@ async function getCodeQLBundleDownloadURL( return `https://github.com/${CODEQL_DEFAULT_ACTION_REPOSITORY}/releases/download/${CODEQL_BUNDLE_VERSION}/${codeQLBundleName}`; } +type CodeQLToolsSource = + | { codeqlTarPath: string; sourceType: "local"; toolsVersion: "local" } + | { + codeqlFolder: string; + sourceType: "toolcache"; + toolsVersion: string; + } + | { + codeqlURL: string; + semanticVersion: string; + sourceType: "download"; + toolsVersion: string; + }; + +async function getCodeQLSource( + toolsInput: string | undefined, + bypassToolcache: boolean, + apiDetails: api.GitHubApiDetails, + variant: util.GitHubVariant, + logger: Logger +): Promise { + if (toolsInput && toolsInput !== "latest" && !toolsInput.startsWith("http")) { + return { + codeqlTarPath: toolsInput, + sourceType: "local", + toolsVersion: "local", + }; + } + + const forceLatestReason = + // We use the special value of 'latest' to prioritize the version in the + // defaults over any pinned cached version. + toolsInput === "latest" + ? '"tools: latest" was requested' + : // If the user hasn't requested a particular CodeQL version, then bypass + // the toolcache when the appropriate feature is enabled. This + // allows us to quickly rollback a broken bundle that has made its way + // into the toolcache. + toolsInput === undefined && bypassToolcache + ? "a specific version of CodeQL was not requested and the bypass toolcache feature is enabled" + : undefined; + const forceLatest = forceLatestReason !== undefined; + if (forceLatest) { + logger.debug( + `Forcing the latest version of the CodeQL tools since ${forceLatestReason}.` + ); + } + + const codeqlURL = forceLatest ? undefined : toolsInput; + const requestedSemVer = convertToSemVer( + getCodeQLURLVersion(codeqlURL || `/${CODEQL_BUNDLE_VERSION}/`), + logger + ); + + // If we find the specified version, we always use that. + const codeqlFolder = toolcache.find("CodeQL", requestedSemVer); + if (codeqlFolder) { + return { + codeqlFolder, + sourceType: "toolcache", + toolsVersion: requestedSemVer, + }; + } + + // If we don't find the requested version, in some cases we may allow a + // different version to save download time if the version hasn't been + // specified explicitly (in which case we always honor it). + if (!codeqlURL && !forceLatest) { + const codeqlVersions = toolcache.findAllVersions("CodeQL"); + if (codeqlVersions.length === 1 && isGoodVersion(codeqlVersions[0])) { + const tmpCodeqlFolder = toolcache.find("CodeQL", codeqlVersions[0]); + if (fs.existsSync(path.join(tmpCodeqlFolder, "pinned-version"))) { + logger.debug( + `CodeQL in cache overriding the default ${CODEQL_BUNDLE_VERSION}` + ); + return { + codeqlFolder: tmpCodeqlFolder, + sourceType: "toolcache", + toolsVersion: codeqlVersions[0], + }; + } + } + } + + return { + codeqlURL: + codeqlURL || + (await getCodeQLBundleDownloadURL(apiDetails, variant, logger)), + semanticVersion: requestedSemVer, + sourceType: "download", + toolsVersion: + semver.prerelease(requestedSemVer)?.join(".") || requestedSemVer, + }; +} + +async function downloadCodeQL( + codeqlURL: string, + semanticVersion: string, + apiDetails: api.GitHubApiDetails, + tempDir: string, + logger: Logger +): Promise { + const parsedCodeQLURL = new URL(codeqlURL); + const searchParams = new URLSearchParams(parsedCodeQLURL.search); + const headers: OutgoingHttpHeaders = { + accept: "application/octet-stream", + }; + // We only want to provide an authorization header if we are downloading + // from the same GitHub instance the Action is running on. + // This avoids leaking Enterprise tokens to dotcom. + // We also don't want to send an authorization header if there's already a token provided in the URL. + if ( + codeqlURL.startsWith(`${apiDetails.url}/`) && + !searchParams.has("token") + ) { + logger.debug("Downloading CodeQL bundle with token."); + headers.authorization = `token ${apiDetails.auth}`; + } else { + logger.debug("Downloading CodeQL bundle without token."); + } + logger.info( + `Downloading CodeQL tools from ${codeqlURL}. This may take a while.` + ); + + const dest = path.join(tempDir, uuidV4()); + const finalHeaders = Object.assign( + { "User-Agent": "CodeQL Action" }, + headers + ); + const codeqlPath = await toolcache.downloadTool( + codeqlURL, + dest, + undefined, + finalHeaders + ); + logger.debug(`CodeQL bundle download to ${codeqlPath} complete.`); + + const codeqlExtracted = await toolcache.extractTar(codeqlPath); + return await toolcache.cacheDir(codeqlExtracted, "CodeQL", semanticVersion); +} + /** * Set up CodeQL CLI access. * - * @param codeqlURL + * @param toolsInput * @param apiDetails * @param tempDir * @param variant - * @param features + * @param bypassToolcache * @param logger * @param checkVersion Whether to check that CodeQL CLI meets the minimum * version requirement. Must be set to true outside tests. * @returns a { CodeQL, toolsVersion } object. */ export async function setupCodeQL( - codeqlURL: string | undefined, + toolsInput: string | undefined, apiDetails: api.GitHubApiDetails, tempDir: string, variant: util.GitHubVariant, @@ -426,110 +567,37 @@ export async function setupCodeQL( checkVersion: boolean ): Promise<{ codeql: CodeQL; toolsVersion: string }> { try { - const forceLatestReason = - // We use the special value of 'latest' to prioritize the version in the - // defaults over any pinned cached version. - codeqlURL === "latest" - ? '"tools: latest" was requested' - : // If the user hasn't requested a particular CodeQL version, then bypass - // the toolcache when the appropriate feature is enabled. This - // allows us to quickly rollback a broken bundle that has made its way - // into the toolcache. - codeqlURL === undefined && bypassToolcache - ? "a specific version of CodeQL was not requested and the bypass toolcache feature is enabled" - : undefined; - const forceLatest = forceLatestReason !== undefined; - if (forceLatest) { - logger.debug( - `Forcing the latest version of the CodeQL tools since ${forceLatestReason}.` - ); - codeqlURL = undefined; - } + const source = await getCodeQLSource( + toolsInput, + bypassToolcache, + apiDetails, + variant, + logger + ); + let codeqlFolder: string; - let codeqlURLVersion: string; - if (codeqlURL && !codeqlURL.startsWith("http")) { - codeqlFolder = await toolcache.extractTar(codeqlURL); - codeqlURLVersion = "local"; - } else { - codeqlURLVersion = getCodeQLURLVersion( - codeqlURL || `/${CODEQL_BUNDLE_VERSION}/` - ); - const codeqlURLSemVer = convertToSemVer(codeqlURLVersion, logger); - - // If we find the specified version, we always use that. - codeqlFolder = toolcache.find("CodeQL", codeqlURLSemVer); - - // If we don't find the requested version, in some cases we may allow a - // different version to save download time if the version hasn't been - // specified explicitly (in which case we always honor it). - if (!codeqlFolder && !codeqlURL && !forceLatest) { - const codeqlVersions = toolcache.findAllVersions("CodeQL"); - if (codeqlVersions.length === 1 && isGoodVersion(codeqlVersions[0])) { - const tmpCodeqlFolder = toolcache.find("CodeQL", codeqlVersions[0]); - if (fs.existsSync(path.join(tmpCodeqlFolder, "pinned-version"))) { - logger.debug( - `CodeQL in cache overriding the default ${CODEQL_BUNDLE_VERSION}` - ); - codeqlFolder = tmpCodeqlFolder; - codeqlURLVersion = codeqlVersions[0]; - } - } - } - if (codeqlFolder) { + switch (source.sourceType) { + case "local": + codeqlFolder = await toolcache.extractTar(source.codeqlTarPath); + break; + case "toolcache": + codeqlFolder = source.codeqlFolder; logger.debug(`CodeQL found in cache ${codeqlFolder}`); - } else { - if (!codeqlURL) { - codeqlURL = await getCodeQLBundleDownloadURL( - apiDetails, - variant, - logger - ); - } - - const parsedCodeQLURL = new URL(codeqlURL); - const searchParams = new URLSearchParams(parsedCodeQLURL.search); - const headers: OutgoingHttpHeaders = { - accept: "application/octet-stream", - }; - // We only want to provide an authorization header if we are downloading - // from the same GitHub instance the Action is running on. - // This avoids leaking Enterprise tokens to dotcom. - // We also don't want to send an authorization header if there's already a token provided in the URL. - if ( - codeqlURL.startsWith(`${apiDetails.url}/`) && - !searchParams.has("token") - ) { - logger.debug("Downloading CodeQL bundle with token."); - headers.authorization = `token ${apiDetails.auth}`; - } else { - logger.debug("Downloading CodeQL bundle without token."); - } - logger.info( - `Downloading CodeQL tools from ${codeqlURL}. This may take a while.` - ); - - const dest = path.join(tempDir, uuidV4()); - const finalHeaders = Object.assign( - { "User-Agent": "CodeQL Action" }, - headers - ); - const codeqlPath = await toolcache.downloadTool( - codeqlURL, - dest, - undefined, - finalHeaders + break; + case "download": + codeqlFolder = await downloadCodeQL( + source.codeqlURL, + source.semanticVersion, + apiDetails, + tempDir, + logger ); - logger.debug(`CodeQL bundle download to ${codeqlPath} complete.`); - - const codeqlExtracted = await toolcache.extractTar(codeqlPath); - codeqlFolder = await toolcache.cacheDir( - codeqlExtracted, - "CodeQL", - codeqlURLSemVer - ); - } + break; + default: + assertNever(source); } + let codeqlCmd = path.join(codeqlFolder, "codeql", "codeql"); if (process.platform === "win32") { codeqlCmd += ".exe"; @@ -538,7 +606,7 @@ export async function setupCodeQL( } cachedCodeQL = await getCodeQLForCmd(codeqlCmd, checkVersion); - return { codeql: cachedCodeQL, toolsVersion: codeqlURLVersion }; + return { codeql: cachedCodeQL, toolsVersion: source.toolsVersion }; } catch (e) { logger.error(e instanceof Error ? e : new Error(String(e))); throw new Error("Unable to download and extract CodeQL CLI"); diff --git a/src/init.ts b/src/init.ts index f7bbf534b4..b674bfadd9 100644 --- a/src/init.ts +++ b/src/init.ts @@ -16,7 +16,7 @@ import * as util from "./util"; import { codeQlVersionAbove } from "./util"; export async function initCodeQL( - codeqlURL: string | undefined, + toolsInput: string | undefined, apiDetails: GitHubApiDetails, tempDir: string, variant: util.GitHubVariant, @@ -25,7 +25,7 @@ export async function initCodeQL( ): Promise<{ codeql: CodeQL; toolsVersion: string }> { logger.startGroup("Setup CodeQL tools"); const { codeql, toolsVersion } = await setupCodeQL( - codeqlURL, + toolsInput, apiDetails, tempDir, variant, From b2b478264a899bd1b5b8db05247aab6440c59920 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Fri, 6 Jan 2023 12:28:54 +0000 Subject: [PATCH 2/2] Improve logging around authorization headers --- lib/codeql.js | 10 ++++++---- lib/codeql.js.map | 2 +- src/codeql.ts | 11 +++++------ 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/lib/codeql.js b/lib/codeql.js index 244b289ee4..afbcfe3878 100644 --- a/lib/codeql.js +++ b/lib/codeql.js @@ -267,13 +267,15 @@ async function downloadCodeQL(codeqlURL, semanticVersion, apiDetails, tempDir, l // from the same GitHub instance the Action is running on. // This avoids leaking Enterprise tokens to dotcom. // We also don't want to send an authorization header if there's already a token provided in the URL. - if (codeqlURL.startsWith(`${apiDetails.url}/`) && - !searchParams.has("token")) { - logger.debug("Downloading CodeQL bundle with token."); + if (searchParams.has("token")) { + logger.debug("CodeQL tools URL contains an authorization token."); + } + else if (codeqlURL.startsWith(`${apiDetails.url}/`)) { + logger.debug("Providing an authorization token to download CodeQL tools."); headers.authorization = `token ${apiDetails.auth}`; } else { - logger.debug("Downloading CodeQL bundle without token."); + logger.debug("Downloading CodeQL tools without an authorization token."); } logger.info(`Downloading CodeQL tools from ${codeqlURL}. This may take a while.`); const dest = path.join(tempDir, (0, uuid_1.v4)()); diff --git a/lib/codeql.js.map b/lib/codeql.js.map index 07b2bad6db..11a81aeb6d 100644 --- a/lib/codeql.js.map +++ b/lib/codeql.js.map @@ -1 +1 @@ -{"version":3,"file":"codeql.js","sourceRoot":"","sources":["../src/codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,2CAA6B;AAE7B,yEAA2D;AAC3D,+DAAiD;AACjD,sEAAuD;AACvD,8CAAgC;AAChC,+CAAiC;AACjC,+BAAoC;AAEpC,iDAAsD;AACtD,kDAAoC;AAEpC,0DAA4C,CAAC,2CAA2C;AACxF,mDAAgD;AAEhD,2CAAyD;AAEzD,yEAAoE;AACpE,iDAGwB;AACxB,6CAA+B;AAC/B,iCAAoD;AAuBpD,MAAa,sBAAuB,SAAQ,KAAK;IAC/C,YACE,GAAW,EACX,IAAc,EACd,QAAgB,EAChB,KAAa,EACN,MAAc;QAErB,KAAK,CACH,oBAAoB,GAAG,mBAAmB,IAAI;kBAClC,QAAQ;QAClB,KAAK,EAAE,CACV,CAAC;QANK,WAAM,GAAN,MAAM,CAAQ;IAOvB,CAAC;CACF;AAdD,wDAcC;AAsKD;;;GAGG;AACH,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC;AACxC,QAAA,gCAAgC,GAAG,sBAAsB,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAEvC;;;;GAIG;AACH,MAAM,gCAAgC,GAAG,OAAO,CAAC;AACjD,MAAM,gCAAgC,GAAG,QAAQ,CAAC;AACrC,QAAA,2BAA2B,GAAG,QAAQ,CAAC;AACpD,MAA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AAC;YAC3C,eAAe,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACtD;KACF;IAED,EAAE,CAAC,aAAa,CAAC,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7D,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,SAAS,WAAW,CAAC,GAAQ;IAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/src/codeql.ts b/src/codeql.ts index cb1e16693f..eca2ef392f 100644 --- a/src/codeql.ts +++ b/src/codeql.ts @@ -514,14 +514,13 @@ async function downloadCodeQL( // from the same GitHub instance the Action is running on. // This avoids leaking Enterprise tokens to dotcom. // We also don't want to send an authorization header if there's already a token provided in the URL. - if ( - codeqlURL.startsWith(`${apiDetails.url}/`) && - !searchParams.has("token") - ) { - logger.debug("Downloading CodeQL bundle with token."); + if (searchParams.has("token")) { + logger.debug("CodeQL tools URL contains an authorization token."); + } else if (codeqlURL.startsWith(`${apiDetails.url}/`)) { + logger.debug("Providing an authorization token to download CodeQL tools."); headers.authorization = `token ${apiDetails.auth}`; } else { - logger.debug("Downloading CodeQL bundle without token."); + logger.debug("Downloading CodeQL tools without an authorization token."); } logger.info( `Downloading CodeQL tools from ${codeqlURL}. This may take a while.`