Skip to content

CodeQL

CodeQL #23

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types:
- opened
- synchronize
- reopened
- ready_for_review
schedule:
# Run every week, at a randomly picked time and day
- cron: '16 23 * * 4'
jobs:
analyze:
name: Analyze
# Avoid running for Draft pull requests
if: github.event.pull_request.draft == false
runs-on: 'ubuntu-latest'
timeout-minutes: 360
permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'csharp'
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:csharp"