Skip to content

Commit 1696aae

Browse files
committed
Add GitHub Code Analysis workflow.
1 parent 1f44c6f commit 1696aae

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master, test ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '31 6 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ 'csharp' ]
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v2
28+
29+
- name: Set up .NET 6.0
30+
uses: actions/setup-dotnet@v1
31+
with:
32+
dotnet-version: 6.0.100-preview.5.21302.13
33+
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v1
36+
with:
37+
languages: ${{ matrix.language }}
38+
# If you wish to specify custom queries, you can do so here or in a config file.
39+
# By default, queries listed here will override any specified in a config file.
40+
# Prefix the list here with "+" to use these queries and those in the config file.
41+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
42+
43+
- name: Autobuild
44+
uses: github/codeql-action/autobuild@v1
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)