You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2023/06/21 09:47:29 UTC

[shardingsphere] branch master updated: Add : add codeql action in nightly check (#26483)

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

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 5365745c320 Add : add codeql action in nightly check (#26483)
5365745c320 is described below

commit 5365745c3209970bea18a0280c31ebe0f8002a48
Author: 孙念君 Nianjun Sun <su...@apache.org>
AuthorDate: Wed Jun 21 17:47:21 2023 +0800

    Add : add codeql action in nightly check (#26483)
    
    * Add : add codeql action in nightly check
    
    * Add : add repository limitation for nightly check
---
 .github/workflows/nightly-check.yml | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/.github/workflows/nightly-check.yml b/.github/workflows/nightly-check.yml
index a4a5e726e21..2253e64b5e2 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -151,3 +151,39 @@ jobs:
               fi
             markdown-link-check -c .github/workflows/resources/linkcheck/markdown-link-check.json -q "$file"
           done
+
+  check-codeql:
+    if: (github.repository == 'apache/shardingsphere')
+    name: Check - CodeQL
+    runs-on: ubuntu-latest
+    timeout-minutes: 45
+    permissions:
+      actions: read
+      contents: read
+      security-events: write
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/setup-java@v3
+        with:
+          java-version: 11
+          distribution: 'temurin'
+      - name: Initialize CodeQL
+        uses: github/codeql-action/init@v2
+        with:
+          languages: java
+      - uses: actions/cache@v3
+        with:
+          path: ~/.m2/repository
+          key: ${{ env.CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ env.CACHE_PREFIX }}-maven-third-party-
+      - name: Set Swap Space
+        uses: pierotofy/set-swap-space@master
+        with:
+          swap-size-gb: 10
+      - name: Install Project
+        run: ./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true -Drat.skip=true
+      - name: Perform CodeQL Analysis
+        uses: github/codeql-action/analyze@v2
+        with:
+          category: "/language:java"