This is an automated email from the ASF dual-hosted git repository.

yuluo-yx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new 97b54d85a1 ci: optimize CodeQL build (#7339)
97b54d85a1 is described below

commit 97b54d85a1bd6329e8bd7d8649d34f2107e356ff
Author: aias00 <[email protected]>
AuthorDate: Mon Sep 28 00:55:51 2026 -0700

    ci: optimize CodeQL build (#7339)
---
 .github/workflows/codeql-analysis.yml | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/codeql-analysis.yml 
b/.github/workflows/codeql-analysis.yml
index 50ae4f1724..8c07103bc8 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -21,9 +21,11 @@ on:
       - master
     paths:
       - '**/*.java'
+      - '.github/workflows/codeql-analysis.yml'
   pull_request:
     paths:
       - '**/*.java'
+      - '.github/workflows/codeql-analysis.yml'
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
@@ -64,9 +66,23 @@ jobs:
         uses: github/codeql-action/init@v3
         with:
           languages: ${{ matrix.language }}
+          build-mode: manual
 
-      - name: Autobuild
-        uses: github/codeql-action/autobuild@v3
+      - name: Build for CodeQL analysis
+        run: |
+          ./mvnw -B -ntp -T 1C package \
+            -DskipTests \
+            -DskipRemoteResources=true \
+            -Dfindbugs.skip=true \
+            -Dcheckstyle.skip=true \
+            -Dpmd.skip=true \
+            -Dspotbugs.skip=true \
+            -Denforcer.skip=true \
+            -Dmaven.javadoc.skip=true \
+            -Dlicense.skip=true \
+            -Drat.skip=true \
+            -Dspotless.check.skip=true \
+            -Djacoco.skip=true
 
       - name: Perform CodeQL Analysis
         uses: github/codeql-action/analyze@v3

Reply via email to