From 7dab60079ba615275bc07067ee108dfa7ebec60a Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 24 Aug 2023 17:56:31 +0100 Subject: [PATCH] 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. --- src/init-action.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/init-action.ts b/src/init-action.ts index fbacaa5efc..3d0f1e6ddf 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -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"); }