-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.22 KB
/
codeql.yml
File metadata and controls
62 lines (51 loc) · 1.22 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
name: CodeQL
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
- cron: "0 0 1 * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
security-events: write
packages: read
actions: read
contents: read
defaults:
run:
shell: pwsh
jobs:
analyze:
name: Analyze C#
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: csharp
build-mode: manual
queries: security-and-quality
config: |
paths:
- apps/desktop
paths-ignore:
- '**/bin/**'
- '**/obj/**'
- name: Restore
run: dotnet restore ArcChat.slnx
- name: Build
run: dotnet build ArcChat.slnx --configuration Release --no-restore
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:csharp"