Skip to content

Commit e8fd523

Browse files
committed
FixWorkflow
1 parent 14443cb commit e8fd523

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,20 @@ jobs:
3030
uses: github/codeql-action/init@v3
3131
with:
3232
languages: ${{ matrix.language }}
33+
# Only analyze source code without building
34+
build-mode: none
3335

3436
- name: ☕ Set up JDK
3537
uses: actions/setup-java@v3
3638
with:
3739
java-version: '17'
3840
distribution: 'temurin'
3941

40-
- name: 🛠️ Build project with Maven
41-
run: mvn clean install
42+
- name: 🛠️ Build project for analysis (skip signing)
43+
run: mvn clean compile test-compile -Dgpg.skip=true -DskipTests=true
4244

4345
- name: 🧠 Perform CodeQL Analysis
4446
uses: github/codeql-action/analyze@v3
47+
with:
48+
# Only analyze when there are results
49+
skip-if-no-results: true

0 commit comments

Comments
 (0)