forked from cake-contrib/Cake.BuildSystems.Module
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.06 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
56
name: "CodeQL"
on:
push:
branches: [develop]
pull_request:
branches: [develop]
schedule:
- cron: '0 15 * * 6'
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
- uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: |
2.1
3.1
5.0
6.0
7.0
8.0
- 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/cake-action@v1.4.1
with:
script-path: recipe.cake
target: DotNetCore-Build
cake-version: 1.3.0
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2