-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.29 KB
/
Copy pathcodeql.yml
File metadata and controls
46 lines (39 loc) · 1.29 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
name: CodeQL
# Security scanning (SAST). Runs on PRs/pushes to main plus a weekly
# schedule so newly-disclosed vulnerability patterns get caught even on
# code nobody's touched recently - this is GitHub's own recommended
# default cadence for CodeQL. dev is excluded since it's pushed to
# directly and frequently - see cicd-setup memory.
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
- cron: "0 6 * * 1"
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
global-json-file: code/K9Crush-scaffold/K9Crush/global.json
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: csharp
# Autobuild finds K9Crush.sln and builds it the same way `dotnet
# build` would - CodeQL needs an actual build to observe, not just
# the source tree, since C# analysis works off compiled output.
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:csharp"