Repository navigation
Fix CodeQL Java toolchain discovery - #169
Merged
Merged
Conversation
mcculls
requested review from
amarziali and
dougqh
and removed request for
a team
November 12, 2026 09:55
amarziali
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Map the GitHub runner's
JAVA_HOME_17_X64toJAVA_17_HOMEbefore initializing CodeQL for Java/Kotlin. Only write the mapping when the directory exists, preserving any existingJAVA_17_HOMEotherwise.Motivation
Gradle disables toolchain auto-detection and looks for Java 17 through
JAVA_17_HOME. CodeQL discovers the runner's JDK through a different variable, so our build fails to find the required compiler when running via GitHub actions.Additional Notes
Full CodeQL analysis remains to be verified in CI.
Contributor Checklist
clean testClassessucceeds with Java 25 as the default and the Java 17 mapping applied, including configuration-cache storage.