Skip to content

ci(codeql): make the java-kotlin analysis blocking again (closes #26) - #180

Merged
WolfTasks merged 1 commit into
mainfrom
ci/codeql-kotlin-blocking
Oct 24, 2026
Merged

WolfTasks merged 1 commit into
mainfrom
ci/codeql-kotlin-blocking

Conversation

@WolfTasks

Copy link
Copy Markdown
Owner

Closes #26.

Seit PR #25 (Kotlin 2.4) lief die CodeQL-Analyse für java-kotlin mit continue-on-error, weil der Kotlin-Extractor Kotlin 2.4 noch nicht kannte (KotlinVersionTooRecentError). Kotlin-Scanning war damit faktisch aus, der Check trotzdem grün.

Nachweis, dass es jetzt wirklich funktioniert (die Step-API meldet bei continue-on-error auch Fehlschläge als success, daher am Inhalt geprüft):

  • main @ 11f8b73 (Kotlin 2.4.20) und @ 2765441 (Kotlin 2.4.21, codeql-action 4.39.0): CodeQL CLI 2.27.3, im java-kotlin-Log kein too recent und kein ##[error]
  • Hochgeladene java-kotlin-Analyse: 76 Regeln, 1 Ergebnis — und zwar in einer .kt-Datei (java/spring-disabled-csrf-protection, SecurityConfig.kt:29, der bekannte, als False Positive verworfene Befund). Ein Befund im Kotlin-Quelltext ist nur möglich, wenn der Kotlin-Code tatsächlich extrahiert wurde.

Änderung:

  • codeql.yml: die beiden temporären continue-on-error (Build + Analyze) und den TEMPORARY-Kommentar entfernt. analyze (java-kotlin, manual) ist bereits Required Check der main-Ruleset → ab jetzt echte Merge-Sperre.
  • supply-chain-security.md: "Autobuild" → manueller Build (compileTestKotlin), Required-Check-Status, Hinweis: bei künftigem "too recent" codeql-action bumpen statt Check abschwächen.

Der CodeQL-Lauf dieses PRs ist zugleich der Test: Er läuft jetzt ohne Netz und doppelten Boden.

🤖 Generated with Claude Code

CodeQL CLI 2.27.3 (codeql-action 4.39.0) extracts Kotlin 2.4.21: no
"Kotlin version too recent" error on main, and the uploaded java-kotlin
analysis carries a finding in a .kt file, so it analyses real Kotlin
code. Drop the temporary continue-on-error on the build and analyze
steps. Docs: manual build mode, both analyze checks are required.

Closes #26

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@WolfTasks
WolfTasks merged commit e367651 into main Oct 24, 2026
11 checks passed
@WolfTasks
WolfTasks deleted the ci/codeql-kotlin-blocking branch October 24, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-enable blocking CodeQL java-kotlin analysis once CodeQL supports Kotlin 2.4.0

1 participant