Skip to content

Commit cbf6865

Browse files
add codeql.yml and global.json files
1 parent 9a61916 commit cbf6865

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
analyze:
11+
name: CodeQL Analysis
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup .NET 9
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: '9.0.x'
22+
23+
- name: Initialize CodeQL
24+
uses: github/codeql-action/init@v3
25+
with:
26+
languages: csharp
27+
build-mode: manual
28+
29+
- name: Restore
30+
run: dotnet restore
31+
32+
- name: Build
33+
run: dotnet build --configuration Release
34+
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v3

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version": "9.0.203"
4+
}
5+
}

0 commit comments

Comments
 (0)