Skip to content

Commit b5c152c

Browse files
Add CodeQL (#774)
Add a workflow to run CodeQL against the codebase.
1 parent e780641 commit b5c152c

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/code-scan.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: code-scan
2+
3+
on:
4+
push:
5+
branches: [ dev* ]
6+
pull_request:
7+
branches: [ dev* ]
8+
schedule:
9+
- cron: "0 12 * * MON"
10+
workflow_dispatch:
11+
12+
permissions:
13+
actions: read
14+
contents: read
15+
16+
jobs:
17+
code-ql:
18+
19+
runs-on: ubuntu-latest
20+
21+
permissions:
22+
security-events: write
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: [ "csharp" ]
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v3
32+
33+
- name: Setup .NET SDK
34+
uses: actions/setup-dotnet@v3
35+
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v2
38+
with:
39+
languages: ${{ matrix.language }}
40+
41+
- name: Autobuild
42+
uses: github/codeql-action/autobuild@v2
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@v2
46+
with:
47+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)