Skip to content

Commit 868465e

Browse files
committed
Fix CodeQL analysis to use JDK 17 and java-kotlin language
1 parent fbc2a57 commit 868465e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
matrix:
2020
# Override automatic language detection by changing the below list
2121
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
22-
language: ['java']
22+
language: ['java-kotlin']
2323
# Learn more...
2424
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
2525

@@ -31,6 +31,13 @@ jobs:
3131
# a pull request then we can checkout the head.
3232
fetch-depth: 2
3333

34+
- name: Set up JDK 17
35+
uses: actions/setup-java@v5
36+
with:
37+
java-version: '17'
38+
distribution: 'zulu'
39+
cache: 'maven'
40+
3441
# Initializes the CodeQL tools for scanning.
3542
- name: Initialize CodeQL
3643
uses: github/codeql-action/init@v4

0 commit comments

Comments
 (0)