Skip to content

Commit b5201ad

Browse files
authored
CodeQL support (#662)
1 parent 019dad1 commit b5201ad

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# https://github.com/github/codeql
2+
# https://github.com/github/codeql-action
13
name: CodeQL analysis
24

35
on:
@@ -9,12 +11,27 @@ on:
911
jobs:
1012
analyze:
1113
runs-on: ubuntu-latest
14+
1215
steps:
13-
- uses: actions/checkout@v2
16+
- name: Checkout source
17+
uses: actions/checkout@v2
18+
19+
- name: Setup .NET Core SDK
20+
uses: actions/setup-dotnet@v1
1421
with:
15-
fetch-depth: 2
16-
- uses: github/codeql-action/init@v1
22+
dotnet-version: '5.0.x'
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v1
1726
with:
27+
queries: security-and-quality
1828
languages: csharp
19-
- uses: github/codeql-action/autobuild@v1
20-
- uses: github/codeql-action/analyze@v1
29+
30+
- name: Install dependencies
31+
run: dotnet restore
32+
33+
- name: Build solution
34+
run: dotnet build --no-restore
35+
36+
- name: Perform CodeQL Analysis
37+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)