Put upper limit on the CodeQL versions for which we override the Kotlin limit

Otherwise it'll be lower than the default at some point in the future.
This commit is contained in:
Ian Lynagh
2023-08-24 17:56:31 +01:00
parent 862b2cf102
commit 7dab60079b

View File

@@ -349,7 +349,10 @@ async function run() {
const kotlinLimitVar =
"CODEQL_EXTRACTOR_KOTLIN_OVERRIDE_MAXIMUM_VERSION_LIMIT";
if (await codeQlVersionAbove(codeql, "2.13.4")) {
if (
(await codeQlVersionAbove(codeql, "2.13.4")) &&
!(await codeQlVersionAbove(codeql, "2.14.4"))
) {
core.exportVariable(kotlinLimitVar, "1.9.20");
}