-
Notifications
You must be signed in to change notification settings - Fork 23
55 lines (46 loc) · 1.13 KB
/
codeql-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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@v3
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
- name: Cache Tools
uses: actions/cache@v3
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
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@v2