From 62eb7f38bf491ff2ba0467dc6c64eb3c36aa1ea2 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Tue, 4 Feb 2025 19:45:48 -0800 Subject: [PATCH] Fix CodeQL workflow (#13215) --- .github/workflows/codeql.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bee46b2486..79b1de1221 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -61,8 +61,10 @@ jobs: tools: latest - name: Build - # skipping build cache is needed so that all modules will be analyzed - run: ./gradlew assemble -x javadoc + # --no-build-cache is required for codeql to analyze all modules + # --no-daemon is required for codeql to observe the compilation + # (see https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/preparing-your-code-for-codeql-analysis#specifying-build-commands) + run: ./gradlew assemble -x javadoc --no-build-cache --no-daemon - name: Perform CodeQL analysis uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8