Skip to content

Commit 3ef14af

Browse files
GCHOfficialGeorge-Cosmin Hanta
andauthored
ci: CodeQL action v4 + re-add Kotlin (#28)
* ci: CodeQL action v4 + re-add Kotlin v3 is deprecated (Dec 2026) and runs on the now-deprecated Node 20; its bundled CodeQL CLI also predated Kotlin 2.4.0 support, which is why java-kotlin failed with 'Kotlin version 2.4.0 is too recent'. github/codeql#21970 added 2.4.0 support, shipped in v4's CLI — so move init/analyze to @v4 and restore the java-kotlin matrix entry (build-mode manual via 'flutter build apk'). * ci: keep CodeQL on v4 but drop Kotlin until a CLI ships 2.4.0 The Kotlin 2.4.0 extractor support (github/codeql#21970) is merged but not yet in a released CodeQL CLI — the latest (2.25.6) still caps at < 2.3.30, so the java-kotlin job fails regardless of action version. Keep the v4 upgrade (off the deprecated v3 / Node 20) and scope to c-cpp + actions; the comment records the exact condition to re-add Kotlin. --------- Co-authored-by: George-Cosmin Hanta <george-cosmin.hanta@marigoldointment.com>
1 parent 4c255bd commit 3ef14af

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ on:
1212
# it can: the Windows-runner C++ (GDI overlay, HDR badges) and the workflow YAML.
1313
#
1414
# Not covered:
15-
# - java-kotlin (the Android player/HDR code): CodeQL's Kotlin extractor only
16-
# supports Kotlin < 2.3.30, but the app is on 2.4.0 ("Kotlin version 2.4.0 is
17-
# too recent"). Re-add a `{language: java-kotlin, build-mode: manual}` entry
18-
# (with setup-java + `flutter build apk`) once CodeQL supports Kotlin 2.4.0.
15+
# - java-kotlin (the Android player/HDR code): the app is on Kotlin 2.4.0, and
16+
# the latest released CodeQL CLI (2.25.6) still caps at < 2.3.30 ("Kotlin
17+
# version 2.4.0 is too recent"). Support is merged upstream
18+
# (github/codeql#21970) but not yet in a CLI release. Re-add a
19+
# `{language: java-kotlin, build-mode: manual}` entry (with setup-java +
20+
# `flutter build apk` + `lfs: true`) once a CLI past 2.25.6 ships it.
1921
# - javascript-typescript: web/ is only Flutter's generated bootstrap (no source).
2022
# - swift: the iOS/macOS shells are Flutter template code (no first-party logic).
2123
permissions:
@@ -46,7 +48,7 @@ jobs:
4648
steps:
4749
- uses: actions/checkout@v7
4850

49-
- uses: github/codeql-action/init@v3
51+
- uses: github/codeql-action/init@v4
5052
with:
5153
languages: ${{ matrix.language }}
5254
build-mode: ${{ matrix.build-mode }}
@@ -67,6 +69,6 @@ jobs:
6769
flutter pub get
6870
flutter build windows --debug
6971
70-
- uses: github/codeql-action/analyze@v3
72+
- uses: github/codeql-action/analyze@v4
7173
with:
7274
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)