Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
with:
persist-credentials: false

# The autobuild action was unable to build this repository's Gradle/Kotlin
# project (see the failed CI run), so java-kotlin now uses "manual" build
# mode. We build the project ourselves using the same JDK and Gradle task
# that the repository's own Test workflow (test.yml) relies on.
# The autobuild action was unable to build this repository's Gradle/Kotlin
# project (see the failed CI run), so java-kotlin now uses "manual" build
# mode. We build the project ourselves using the same JDK and Gradle task
# that the repository's own Test workflow (test.yml) relies on.
- name: Set up JDK 25 (Temurin)
if: matrix.build-mode == 'manual'
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
Expand All @@ -70,7 +70,20 @@ jobs:
run: |
./gradlew --no-daemon -PjdkBuildVersion=25 -Dorg.gradle.java.installations.auto-download=false testClasses

# NOTE: This repository currently also has GitHub's "Default setup" for
# Code scanning enabled. GitHub refuses to accept SARIF results from an
# advanced configuration (this workflow) while Default setup is also
# enabled for the same languages, so the upload below fails with:
# "CodeQL analyses from advanced configurations cannot be processed
# when the default setup is enabled"
# `continue-on-error` stops that upload conflict from failing this job.
# The lasting fix is for a repo admin to disable Default setup for Code
# scanning under Settings > Code security and analysis, because Default
# setup's autobuild cannot build this project's Gradle/Kotlin sources
# (see the manual build step above), so this advanced workflow needs to
# remain the source of truth for Java/Kotlin scanning.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
continue-on-error: true
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
with:
category: "/language:${{matrix.language}}"
Loading