Skip to content

Commit bd9b3d4

Browse files
committed
[chore] Improve CodeQL action to skip building
Signed-off-by: Dariusz Jędrzejczyk <dariusz.jedrzejczyk@broadcom.com>
1 parent e215666 commit bd9b3d4

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
language: ['java', 'actions']
47+
include:
48+
- language: java
49+
build-mode: none
50+
- language: actions
4851
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
4952
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
5053
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
@@ -72,11 +75,6 @@ jobs:
7275
# 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
7376
queries: security-extended,security-and-quality
7477

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

0 commit comments

Comments
 (0)