Skip to content

Commit

Permalink
Kotlin: CodeQL >= 2.13.4 supports 1.9.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Lynagh committed Aug 24, 2023
1 parent 9a53fd0 commit e581348
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/init-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
checkDiskUsage,
checkForTimeout,
checkGitHubVersionInRange,
codeQlVersionAbove,
DEFAULT_DEBUG_ARTIFACT_NAME,
DEFAULT_DEBUG_DATABASE_NAME,
getMemoryFlagValue,
Expand Down Expand Up @@ -346,6 +347,11 @@ async function run() {
core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true");
}

const kotlinLimitVar = "CODEQL_EXTRACTOR_KOTLIN_OVERRIDE_MAXIMUM_VERSION_LIMIT";
if (await codeQlVersionAbove(codeql, "2.13.4")) {
core.exportVariable(kotlinLimitVar, "1.9.20");
}

if (config.languages.includes(Language.java)) {
const envVar = "CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS";
if (process.env[envVar]) {
Expand Down

0 comments on commit e581348

Please sign in to comment.