Include apiDetails in CodeQLDownloadSource

This commit is contained in:
Michael B. Gale
2026-10-14 11:44:14 +01:00
parent f2547e0e83
commit b2bf75026d
4 changed files with 18 additions and 26 deletions

19
lib/entry-points.js generated
View File

@@ -176665,7 +176665,8 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, rawLanguages, othe
cliVersion: cliVersion2,
compressionMethod,
sourceType: "download",
toolsVersion: resolvedVersion ?? "unknown"
toolsVersion: resolvedVersion ?? "unknown",
apiDetails
};
}
async function tryGetFallbackToolcacheVersion(cliVersion2, tagName, logger2) {
@@ -176679,7 +176680,7 @@ async function tryGetFallbackToolcacheVersion(cliVersion2, tagName, logger2) {
);
return fallbackVersion;
}
var downloadCodeQL = async function(source, apiDetails, tarVersion, tempDir, logger2) {
var downloadCodeQL = async function(source, tarVersion, tempDir, logger2) {
const { bundle, compressionMethod } = source;
const codeqlURL = bundle.url;
const parsedCodeQLURL = new URL(codeqlURL);
@@ -176693,7 +176694,7 @@ var downloadCodeQL = async function(source, apiDetails, tarVersion, tempDir, log
} else {
authorization = getAuthorizationHeaderFor(
logger2,
apiDetails,
source.apiDetails,
codeqlURL
);
}
@@ -176817,7 +176818,6 @@ async function setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defau
const result = await downloadCodeQLBundle(
{ env: getEnv(), features, logger: logger2 },
source,
apiDetails,
zstdAvailability.version,
tempDir
);
@@ -176837,19 +176837,13 @@ async function setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defau
toolsVersion: source.toolsVersion
};
}
async function downloadCodeQLBundle(action, source, apiDetails, tarVersion, tempDir) {
async function downloadCodeQLBundle(action, source, tarVersion, tempDir) {
const { bundle } = source;
const { logger: logger2 } = action;
await tryDeleteToolcacheBundles(action);
const startTime = import_perf_hooks4.performance.now();
try {
return await downloadCodeQL(
source,
apiDetails,
tarVersion,
tempDir,
logger2
);
return await downloadCodeQL(source, tarVersion, tempDir, logger2);
} catch (e) {
if (bundle.kind !== "per-language" || bundle.combinedBundleURL === void 0 || asHTTPError(e)?.status !== 404) {
throw e;
@@ -176860,7 +176854,6 @@ async function downloadCodeQLBundle(action, source, apiDetails, tarVersion, temp
...source,
bundle: { kind: "combined", url: bundle.combinedBundleURL }
},
apiDetails,
tarVersion,
tempDir,
logger2