Skip to content

Commit 63319af

Browse files
committedNov 28, 2022
add codeql
1 parent a549d39 commit 63319af

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
 
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name : CodeQL Configuration
2+
3+
paths:
4+
- './src'

‎.github/workflows/codeql.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# copied from microsoft/TypeScript and simplified slightly; see that file for boilerplate commentary
2+
# (which was likely copied from github/codeql-action)
3+
name: "Code scanning - action"
4+
5+
on:
6+
push:
7+
pull_request:
8+
schedule:
9+
- cron: '0 19 * * 0'
10+
11+
jobs:
12+
CodeQL-Build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
with:
20+
# We must fetch at least the immediate parents so that if this is
21+
# a pull request then we can checkout the head.
22+
fetch-depth: 2
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v2
26+
with:
27+
config-file: ./.github/codeql/codeql-configuration.yml
28+
29+
- name: Autobuild
30+
uses: github/codeql-action/autobuild@v2
31+
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)
Please sign in to comment.