Repository navigation
60 lines (51 loc) · 1.6 KB
/
Copy pathcodeql.yml
File metadata and controls
60 lines (51 loc) · 1.6 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
name: "CodeQL"
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Once a week, because the dependencies behind the frozen snapshot move.
- cron: '30 5 * * 3'
permissions:
contents: read
jobs:
analyze:
name: Analyze (csharp)
runs-on: windows-latest
timeout-minutes: 30
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [csharp]
steps:
- name: Check out the repository
uses: actions/checkout@v7
- name: Set up .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: '8.0.x'
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# The security queries. The quality queries are a style linter, and
# they report the deliberate catch-alls and the vendored snapshot
# as findings, which drowns the ones that matter.
queries: security-extended
# The build output and the frozen upstream snapshot are not our
# code; the configuration keeps them out of the analysis.
config-file: ./.github/codeql-config.yml
# The build is a step of its own, after this one, so the tracer sees
# the code as it is compiled.
build-mode: none
- name: Build
run: dotnet build CodeScope.sln -c Release
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:${{ matrix.language }}'