Skip to content

CodeQL

CodeQL #464

name: "CodeQL"
on:
push:
branches: [develop]
pull_request:
branches: [develop]
schedule:
- cron: '0 15 * * 6'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
language: ['csharp']
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
# codecov and unittests need 2.1, gitversion needs 5.0 and need .NET 6 to build
dotnet-version: |
2.1.818
3.1.414
5.0.402
6.0.100
7.0.402
8.0.100
- name: Cache Tools
uses: actions/cache@v4
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build project
uses: cake-build/[email protected]
with:
script-path: recipe.cake
target: DotNetCore-Build
cake-version: tool-manifest
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3