-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (62 loc) · 2.03 KB
/
codeql.yml
File metadata and controls
74 lines (62 loc) · 2.03 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: "CodeQL C#"
on:
push:
branches: [ "master", "main", "develop" ]
pull_request:
branches: [ "master", "main", "develop" ]
schedule:
- cron: '0 18 * * 5' # Runs at 18:00 every Friday
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['csharp']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-extended,security-and-quality
- name: Build Avalonia_Apps
continue-on-error: true # Ignore errors during this step
run: |
dotnet build Avalonia_Apps/Avalonia_Apps.sln
- name: Build Transpiler_pp
continue-on-error: true # Ignore errors during this step
run: |
dotnet build Transpiler_pp/Transpiler.sln
- name: Build CSharpBible
continue-on-error: true # Ignore errors during this step
run: |
dotnet build CSharpBible/Libraries/Libraries.sln
dotnet build CSharpBible/Calc/Calc.sln
dotnet build CSharpBible/Graphics/Graphics.sln
dotnet build CSharpBible/MVVM_Tutorial/MVVM_Tutorial.sln
# Uncomment and modify the following lines if Autobuild fails
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"