From f826b2d14c1dee62fe00c3944cc1e552cf1a8e0c Mon Sep 17 00:00:00 2001 From: G-Sacker Date: Thu, 8 Aug 2024 19:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ecopyresults?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/codeql copy.yml | 33 +++++++++++-------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/codeql copy.yml b/.github/workflows/codeql copy.yml index f7819d2..ff390ef 100644 --- a/.github/workflows/codeql copy.yml +++ b/.github/workflows/codeql copy.yml @@ -1,4 +1,4 @@ -name: "CodeQL-copy" +name: CodeQL on: push: @@ -8,21 +8,15 @@ on: jobs: analyze: - name: Analyze (${{ matrix.language }}) + name: Analyze Java Code runs-on: ubuntu-latest - timeout-minutes: 360 + timeout-minutes: 360 permissions: security-events: write packages: read actions: read contents: read - strategy: - fail-fast: false - matrix: - include: - - language: java - build-mode: none steps: - name: Checkout repository uses: actions/checkout@v4 @@ -30,19 +24,16 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: - languages: ${{ matrix.language }} - build-mode: ${{ matrix.build-mode }} - - if: matrix.build-mode == 'manual' - shell: bash - run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' make bootstrap' - echo ' make release' - exit 1 + languages: java + build-mode: none - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: - category: "/language:${{matrix.language}}" + category: "/language:java" + + - name: Upload CodeQL results + uses: actions/upload-artifact@v2 + with: + name: codeql-results + path: /home/runner/work/_temp/codeql_results