Skip to content

CodeQL

CodeQL #15

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "develop", "main" ]
pull_request:
branches: [ "develop", "main" ]
schedule:
- cron: '23 21 * * 5'
jobs:
analyze:
name: Analyze
runs-on: windows-latest
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore using dotnet
working-directory: ./Source
run: dotnet restore PropertyTools.Wpf
- name: Build using dotnet
working-directory: ./Source
run: dotnet build --no-restore PropertyTools.Wpf -c Release -f net6.0-windows
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"