Skip to content

Create code-ql.yml

Create code-ql.yml #6

Workflow file for this run

name: CodeQL
on:
push:
branches:
- main
- develop
pull_request:
branches:
- develop
schedule:
- cron: '0 0 * * 1' # Weekly schedule at midnight UTC on Mondays
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
tools: linked
- name: Build .NET project
run: dotnet build --configuration Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3