Skip to content

Commit f186822

Browse files
[skip-ci] Setup codeql-analysis.yml (#182)
1 parent b02c1ed commit f186822

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI-Build
1+
name: ci
22

33
on:
44
push:
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "codeql-analysis"
2+
on:
3+
pull_request:
4+
schedule:
5+
- cron: '0 14 * * 4'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 2
15+
16+
- run: git checkout HEAD^2
17+
if: ${{ github.event_name == 'pull_request' }}
18+
19+
- name: Initialize CodeQL
20+
uses: github/codeql-action/init@v1
21+
with:
22+
languages: csharp
23+
24+
- uses: actions/setup-dotnet@v1
25+
with:
26+
dotnet-version: '5.0.100'
27+
28+
- name: Autobuild
29+
uses: github/codeql-action/autobuild@v1
30+
31+
- name: Perform CodeQL Analysis
32+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)