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

Aias00 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 6a757d4477 ci: use buildless CodeQL analysis for pull requests (#7362)
6a757d4477 is described below

commit 6a757d4477d22330ca38af35a1e1f87262b1ddcc
Author: cloudbase-ai <[email protected]>
AuthorDate: Tue Sep 29 15:38:02 2026 +0800

    ci: use buildless CodeQL analysis for pull requests (#7362)
    
    Co-authored-by: cloudbase-ai 
<[email protected]>
---
 .github/workflows/codeql-analysis.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/codeql-analysis.yml 
b/.github/workflows/codeql-analysis.yml
index 8c07103bc8..411b0a961b 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -48,12 +48,14 @@ jobs:
         with:
           submodules: true
       - name: Set up JDK 17
+        if: github.event_name != 'pull_request'
         uses: ./actions/setup-java-with-retry
         with:
           java-version: 17
           distribution: 'temurin'
 
       - name: Restore ShenYu Maven Repos
+        if: github.event_name != 'pull_request'
         id: restore-maven-cache
         uses: actions/cache/restore@v3
         with:
@@ -66,9 +68,10 @@ jobs:
         uses: github/codeql-action/init@v3
         with:
           languages: ${{ matrix.language }}
-          build-mode: manual
+          build-mode: ${{ github.event_name == 'pull_request' && 'none' || 
'manual' }}
 
       - name: Build for CodeQL analysis
+        if: github.event_name != 'pull_request'
         run: |
           ./mvnw -B -ntp -T 1C package \
             -DskipTests \

Reply via email to