From 10e415aae190955670b23436c13e7aa00afebe8c Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 5 Oct 2026 18:32:01 +0100 Subject: [PATCH] Remove Kotlin version limit workaround for CodeQL CLI 2.20.3 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- lib/entry-points.js | 4 ---- src/init-action.ts | 9 --------- 2 files changed, 13 deletions(-) diff --git a/lib/entry-points.js b/lib/entry-points.js index 675b28f94..83ca4b421 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -186597,10 +186597,6 @@ exec ${goBinaryPath} "$@"` if (await features.getValue("force_jgit" /* ForceJGit */)) { core22.exportVariable("CODEQL_GIT_BACKEND", "jgit"); } - const kotlinLimitVar = "CODEQL_EXTRACTOR_KOTLIN_OVERRIDE_MAXIMUM_VERSION_LIMIT"; - if (await codeQlVersionAtLeast(codeql, "2.20.3") && !await codeQlVersionAtLeast(codeql, "2.20.4")) { - core22.exportVariable(kotlinLimitVar, "2.1.20"); - } if (shouldRestoreCache(config.dependencyCachingEnabled)) { const dependencyCachingResult = await downloadDependencyCaches( codeql, diff --git a/src/init-action.ts b/src/init-action.ts index 31414bd80..b226a0cb5 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -630,15 +630,6 @@ async function run( core.exportVariable("CODEQL_GIT_BACKEND", "jgit"); } - const kotlinLimitVar = - "CODEQL_EXTRACTOR_KOTLIN_OVERRIDE_MAXIMUM_VERSION_LIMIT"; - if ( - (await codeQlVersionAtLeast(codeql, "2.20.3")) && - !(await codeQlVersionAtLeast(codeql, "2.20.4")) - ) { - core.exportVariable(kotlinLimitVar, "2.1.20"); - } - // Restore dependency cache(s), if they exist. if (shouldRestoreCache(config.dependencyCachingEnabled)) { const dependencyCachingResult = await downloadDependencyCaches(