Skip to content

Commit 83edd72

Browse files
committed
[chore] Improve CodeQL action to only compile classes
Signed-off-by: Dariusz Jędrzejczyk <[email protected]>
1 parent bd9b3d4 commit 83edd72

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
include:
48-
- language: java
49-
build-mode: none
50-
- language: actions
47+
language: ['java', 'actions']
5148
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
5249
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
5350
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
@@ -75,6 +72,10 @@ jobs:
7572
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
7673
queries: security-extended,security-and-quality
7774

75+
# Manual build to exclude docs project which requires asciidoctor-pdf
76+
- name: Build with Gradle
77+
run: ./gradlew --no-daemon clean testClasses -x :docs:build -x :docs:antora -x :docs:docsZip
78+
7879
- name: Perform CodeQL Analysis
7980
uses: github/codeql-action/analyze@v4
8081
with:

0 commit comments

Comments
 (0)