Merge pull request #2744 from github/igfoo/kot2.1.10
Kotlin: The 2.20.3 release supports Kotlin 2.1.10.
This commit is contained in:
commit
a91a3f7678
4 changed files with 16 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
|
||||||
|
|
||||||
## [UNRELEASED]
|
## [UNRELEASED]
|
||||||
|
|
||||||
No user facing changes.
|
- Enable support for Kotlin 2.1.20 when running with CodeQL CLI v2.20.3. [#2744](https://github.com/github/codeql-action/pull/2744)
|
||||||
|
|
||||||
## 3.28.7 - 29 Jan 2025
|
## 3.28.7 - 29 Jan 2025
|
||||||
|
|
||||||
|
|
|
||||||
5
lib/init-action.js
generated
5
lib/init-action.js
generated
|
|
@ -317,6 +317,11 @@ async function run() {
|
||||||
if (await features.getValue(feature_flags_1.Feature.DisableKotlinAnalysisEnabled)) {
|
if (await features.getValue(feature_flags_1.Feature.DisableKotlinAnalysisEnabled)) {
|
||||||
core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true");
|
core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true");
|
||||||
}
|
}
|
||||||
|
const kotlinLimitVar = "CODEQL_EXTRACTOR_KOTLIN_OVERRIDE_MAXIMUM_VERSION_LIMIT";
|
||||||
|
if ((await (0, util_1.codeQlVersionAtLeast)(codeql, "2.20.3")) &&
|
||||||
|
!(await (0, util_1.codeQlVersionAtLeast)(codeql, "2.20.4"))) {
|
||||||
|
core.exportVariable(kotlinLimitVar, "2.1.20");
|
||||||
|
}
|
||||||
if (config.languages.includes(languages_1.Language.cpp)) {
|
if (config.languages.includes(languages_1.Language.cpp)) {
|
||||||
const envVar = "CODEQL_EXTRACTOR_CPP_TRAP_CACHING";
|
const envVar = "CODEQL_EXTRACTOR_CPP_TRAP_CACHING";
|
||||||
if (process.env[envVar]) {
|
if (process.env[envVar]) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -539,6 +539,15 @@ async function run() {
|
||||||
core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true");
|
core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
|
||||||
if (config.languages.includes(Language.cpp)) {
|
if (config.languages.includes(Language.cpp)) {
|
||||||
const envVar = "CODEQL_EXTRACTOR_CPP_TRAP_CACHING";
|
const envVar = "CODEQL_EXTRACTOR_CPP_TRAP_CACHING";
|
||||||
if (process.env[envVar]) {
|
if (process.env[envVar]) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue