Skip to content

Commit d1a3664

Browse files
committed
Create codeql.yml
1 parent fcda1b6 commit d1a3664

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ 'master', 'release/**' ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ 'master', 'release/**' ]
9+
schedule:
10+
- cron: '0 0 * * 5'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: 'ubuntu-latest'
16+
timeout-minutes: 60
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'csharp' ]
25+
steps:
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@v3
28+
with:
29+
dotnet-version: |
30+
6.0.x
31+
8.0.x
32+
- name: Git checkout
33+
uses: actions/checkout@v4
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v2
36+
with:
37+
languages: ${{ matrix.language }}
38+
- name: Autobuild
39+
uses: github/codeql-action/autobuild@v2
40+
- name: Perform CodeQL Analysis
41+
uses: github/codeql-action/analyze@v2
42+
with:
43+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)