merge codeql analysis
This commit is contained in:
27
.github/workflows/codeql-analysis.yml
vendored
27
.github/workflows/codeql-analysis.yml
vendored
@@ -31,12 +31,22 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
CodeQL-Build:
|
CodeQL-Build:
|
||||||
|
name: Analyze (${{ matrix.language }})
|
||||||
permissions:
|
permissions:
|
||||||
actions: read # for github/codeql-action/init to get workflow details
|
actions: read # for github/codeql-action/init to get workflow details
|
||||||
contents: read # for actions/checkout to fetch code
|
contents: read # for actions/checkout to fetch code
|
||||||
security-events: write # for github/codeql-action/analyze to upload SARIF results
|
security-events: write # for github/codeql-action/analyze to upload SARIF results
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- language: csharp
|
||||||
|
build-mode: manual
|
||||||
|
- language: javascript-typescript
|
||||||
|
build-mode: none
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -45,19 +55,24 @@ jobs:
|
|||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@v3
|
||||||
with:
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
build-mode: ${{ matrix.build-mode }}
|
||||||
config-file: ./.github/config/codeql-config.yml
|
config-file: ./.github/config/codeql-config.yml
|
||||||
|
|
||||||
- name: Use .NET ${{ env.dotnetVersion }}
|
- if: matrix.build-mode == 'manual'
|
||||||
|
name: Use .NET ${{ env.dotnetVersion }}
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{ env.dotnetVersion }}
|
dotnet-version: ${{ env.dotnetVersion }}
|
||||||
dotnet-quality: ${{ env.dotnetIncludePreviewVersions }}
|
dotnet-quality: ${{ env.dotnetIncludePreviewVersions }}
|
||||||
|
|
||||||
- name: Run dotnet restore
|
- if: matrix.build-mode == 'manual'
|
||||||
run: dotnet restore ${{ env.solution }}
|
shell: bash
|
||||||
|
run: |
|
||||||
- name: Run dotnet build
|
dotnet restore ${{ env.solution }}
|
||||||
run: dotnet build ${{ env.solution }} --configuration ${{ env.buildConfiguration }} --no-restore -p:ContinuousIntegrationBuild=true
|
dotnet build ${{ env.solution }} --configuration ${{ env.buildConfiguration }} --no-restore -p:ContinuousIntegrationBuild=true
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v3
|
uses: github/codeql-action/analyze@v3
|
||||||
|
with:
|
||||||
|
category: "/language:${{matrix.language}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user