Skip to content

CodeQL

CodeQL #336

name: "CodeQL"
on:
push:
branches: [ develop, master ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
pull_request:
branches: [ develop ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
schedule:
- cron: '31 12 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Build solution
run: ./build.sh --target compile --no-logo
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3