Update src/per-language-bundles.ts

Co-authored-by: Michael B. Gale <mbg@github.com>
This commit is contained in:
Henry Mercer
2026-09-22 16:49:21 +01:00
committed by GitHub
parent f2ec2f6267
commit 48321b2d48

View File

@@ -102,9 +102,11 @@ export async function getPerLanguageBundleLanguage(
return explain("the job is not running on a GitHub-hosted runner");
}
// When selecting the latest nightly, skip the version check, as nightlies have shipped
// per-language bundles since https://github.com/dsp-testing/codeql-cli-nightlies/releases/tag/codeql-bundle-20260909.
// Otherwise, check the requested CLI version to determine whether per-language bundles are published.
// Nightly releases are identified by dates rather than versions. If
// `isLatestNightly` is `true`, the latest nightly is requested with
// `tools: nightly` and we don't yet have the corresponding tag at this point.
// Therefore, we skip the version check and don't have an equivalent.
// We can safely assume that the latest nightly will have per-language bundles.
if (!isLatestNightly) {
if (cliVersion === undefined) {
return explain("the requested CLI version is unknown");