Skip to content

Commit 4b0ab25

Browse files
authored
Improvement: Updated CodeQL to (Hopefully) Analyze Using the Right Version of Java (MegaMek#7529)
I finally got fed up with CodeQL spitting out rubbish feedback enough to actually do something about it. If my Google-Fu hasn't failed me this addition will give CodeQL the context necessary to review our code with the understanding that we're using J17. Apparently, it was defaulting to J8. If this explodes CodeQL ~~nothing of value will be lost~~ we can easily reverse this change.
2 parents 2184b64 + 1ca4851 commit 4b0ab25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
- name: "Check out MegaMek"
2020
uses: actions/checkout@v5
2121

22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: '17'
26+
distribution: 'temurin'
27+
2228
- name: Initialize CodeQL
2329
uses: github/codeql-action/init@v4
2430
with:

0 commit comments

Comments
 (0)