Centralize CodeQL download telemetry fields

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Henry Mercer
2026-09-16 17:30:50 +01:00
parent dfb9bf52c9
commit f536ef48b7
8 changed files with 165 additions and 119 deletions

View File

@@ -920,7 +920,10 @@ export const downloadCodeQL = async function (
return {
codeqlFolder: extractedBundlePath,
statusReport,
statusReport:
bundle.kind === "per-language"
? { ...statusReport, bundleLanguage: bundle.language }
: statusReport,
};
};
@@ -1141,22 +1144,13 @@ export async function downloadCodeQLBundle(
const startTime = performance.now();
try {
const result = await downloadCodeQL(
return await downloadCodeQL(
source,
apiDetails,
tarVersion,
tempDir,
logger,
);
return bundle.kind === "combined"
? result
: {
...result,
statusReport: {
...result.statusReport,
bundleLanguage: bundle.language,
},
};
} catch (e) {
if (
bundle.kind !== "per-language" ||