Update CodeQL workflow

This commit is contained in:
genteure 2022-12-03 22:02:15 +08:00
parent cb099ca97d
commit abe335b829

View File

@ -2,7 +2,7 @@ name: "CodeQL"
on: on:
push: push:
branches: [ 'dev', 'old-1.2', 'old-clickonce', 'old-master' ] branches: [ 'dev' ]
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [ 'dev' ] branches: [ 'dev' ]
@ -28,17 +28,18 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
submodules: recursive submodules: false # skip fetching webui, they are analyzed separately
- uses: actions/setup-dotnet@v2 - uses: actions/setup-dotnet@v2
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
queries: +security-extended,security-and-quality
- name: Build WebUI
run: ./webui/build.sh
- name: Build CLI - name: Build CLI
if: ${{ matrix.language == 'csharp' }}
run: dotnet build BililiveRecorder.Cli/BililiveRecorder.Cli.csproj run: dotnet build BililiveRecorder.Cli/BililiveRecorder.Cli.csproj
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis