From 60b625e473a5fb1d03f9451f8a957409b713f429 Mon Sep 17 00:00:00 2001 From: Brendan Burns <5751682+brendandburns@users.noreply.github.com> Date: Wed, 7 Aug 2024 22:06:54 +0000 Subject: [PATCH] Update codeql action to remove autobuild --- .github/workflows/codeql-analysis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 39f0e63f5d..296bb0d6b4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,10 +39,11 @@ jobs: uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - tools: 'https://github.com/github/codeql-action/releases/download/codeql-bundle-20230524/codeql-bundle-linux64.tar.gz' - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + # See https://github.com/github/codeql/issues/13541 for the origins of this command + # We can't use autobuild because it doesn't detect the right Java version + - name: Build project + run: ./mvnw clean package -f "pom.xml" -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Dspotbugs.skip -Denforcer.skip -Dmaven.javadoc.skip -DskipTests -Dmaven.test.skip.exec -Dlicense.skip=true -Drat.skip=true -Dspotless.check.skip=true - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3