Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin version 2.0.20 is too recent. CodeQL currently supports versions below 2.0.10 #18381

Closed
rseeton opened this issue Dec 30, 2024 · 2 comments
Labels
question Further information is requested

Comments

@rseeton
Copy link

rseeton commented Dec 30, 2024

CodeQL running in a Enterprise installation is reporting a Kotlin version issue.

During the CodeQL Init action:

Successfully loaded extractor Java/Kotlin (java) from /__w/_tool/CodeQL/2.17.6/x64/codeql/java.
Created skeleton CodeQL database at /__w/_temp/codeql_databases/java. This in-progress database is ready to be populated by an extractor.

During the Gradle Build execution:

Task :build-settings-logic:processResources
e: com.semmle.extractor.java.interceptors.KotlinInterceptor$KotlinVersionTooRecentError: Kotlin version 2.0.20 is too recent. CodeQL currently supports versions below 2.0.10
at com.semmle.extractor.java.interceptors.KotlinInterceptor.getExtractorJarPath(KotlinInterceptor.java:213)

at com.semmle.extractor.java.interceptors.KotlinInterceptor.beforeKotlinExecute(KotlinInterceptor.java:539)
Task :build-settings-logic:compileKotlin FAILED

This leads to a workflow failure.

@rseeton rseeton added the question Further information is requested label Dec 30, 2024
@smowton
Copy link
Contributor

smowton commented Dec 30, 2024

You will need to update your CodeQL version to at least 2.19.1 to gain Kotlin 2.1.0+ support. Are you familiar with how to update CodeQL for GHES?

@rseeton
Copy link
Author

rseeton commented Dec 31, 2024

@smowton - Thanks for the follow-up.

Our admins follow-edu p and established that this occurred because during Github upgrade to 3.14 ,it set the default codeql bundle version to 2.17.6 https://docs.github.com/en/[email protected]/admin/release-notes#code-scanning

They have manually synced the codeql-action now & performed a test .It is updated to codeql bundle version "2.20.0" and our issue has been resolved.

@rseeton rseeton closed this as completed Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants