Skip to content

Commit a5d115f

Browse files
authored
Adding code scanning
1 parent e1957aa commit a5d115f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/codeql.yml

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

0 commit comments

Comments
 (0)