Skip to content

Commit

Permalink
新增copyresults
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Sacker committed Aug 8, 2024
1 parent 0a36b93 commit f826b2d
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/codeql copy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL-copy"
name: CodeQL

on:
push:
Expand All @@ -8,41 +8,32 @@ 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

- 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

0 comments on commit f826b2d

Please sign in to comment.