Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean CodeQL #2734

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
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
18 changes: 6 additions & 12 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,22 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ["java"]
include:
- language: java-kotlin
build-mode: autobuild

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Switch to Java 17 from Eclipse Temurin distro
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
# maybe not needed but got error with spotless. To be tested...
fetch-depth: 0

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

# TODO: use Autobuild instead of ./gradlew after https://github.com/github/codeql-action/issues/1417 is fixed
# - name: Autobuild
# uses: github/codeql-action/autobuild@v2
- name: Build with Gradle
run: ./gradlew --scan --full-stacktrace -Dorg.gradle.dependency.verification=off compileDebugAndroidTestSources
build-mode: autobuild

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down