-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.51 KB
/
Copy pathcodeql.yml
File metadata and controls
57 lines (48 loc) · 1.51 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
# CodeQL static analysis for the C# code.
#
# Uses build-mode: manual with an explicit `dotnet build` rather than autobuild, because this
# repository uses the newer .slnx solution format and autobuild's project discovery can miss it.
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Mondays, 06:23 UTC — catches newly published queries against unchanged code.
- cron: "23 6 * * 1"
permissions:
contents: read
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze C#
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
security-events: write # to upload the results
actions: read
contents: read
steps:
- uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: "10.0.x"
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp
build-mode: manual
# security-extended, not security-and-quality: the quality suite produced 227 alerts and
# not one of them was a security finding, which trains everyone to ignore the tab.
queries: security-extended
config-file: ./.github/codeql/codeql-config.yml
- name: Build
run: dotnet build SignsOfAI.slnx -c Release --nologo
- name: Analyze
uses: github/codeql-action/analyze@v3
with:
category: "/language:csharp"