Skip to content

CodeQL

CodeQL #135

Workflow file for this run

name: CodeQL
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 0 6 * * 1
jobs:
analyze:
name: Analyze
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
matrix:
language: [ csharp ]
framework: [ "net8.0-windows10.0.22621.0", "net9.0-windows10.0.22621.0" ]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.x"
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -f ${{ matrix.framework }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"