Skip to content

Commit 62eb7f3

Browse files
authored
Fix CodeQL workflow (#13215)
1 parent 2b858be commit 62eb7f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/codeql.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ jobs:
6161
tools: latest
6262

6363
- name: Build
64-
# skipping build cache is needed so that all modules will be analyzed
65-
run: ./gradlew assemble -x javadoc
64+
# --no-build-cache is required for codeql to analyze all modules
65+
# --no-daemon is required for codeql to observe the compilation
66+
# (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)
67+
run: ./gradlew assemble -x javadoc --no-build-cache --no-daemon
6668

6769
- name: Perform CodeQL analysis
6870
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8

0 commit comments

Comments
 (0)