Skip to content

Commit 8003ab0

Browse files
Create codeql-analysis.yml (#519)
* Create codeql-analysis.yml * fix pull. * Update codeql-analysis.yml * Create global.json
1 parent b636eb4 commit 8003ab0

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/codeql-analysis.yml

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

global.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
{
3+
"sdk": {
4+
"version": "5.0.100",
5+
"rollForward": "latestMajor"
6+
}
7+
}

0 commit comments

Comments
 (0)