Skip to content

CodeQL

CodeQL #272

name: "CodeQL"
on:
push:
branches: [ master, codeql ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '32 4 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: install .NET Core 7/8 SDKs
uses: actions/setup-dotnet@v2
with:
include-prerelease: false
dotnet-version: |
7.0.x
8.0.x
- name: checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: dotnet restore
run: dotnet restore
- name: build
run: dotnet build --configuration Release --no-restore
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2