Skip to content

Commit fb61dcd

Browse files
authored
Merge pull request #790 from microsoft/add-codeql
Add codeql
2 parents 3ca9e76 + 819c48f commit fb61dcd

File tree

2 files changed

+43
-0
lines changed

2 files changed

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

.github/workflows/codeql.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
strategy:
14+
fail-fast: false
15+
matrix:
16+
language: ['python']
17+
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v3
24+
with:
25+
# We must fetch at least the immediate parents so that if this is
26+
# a pull request then we can checkout the head.
27+
fetch-depth: 2
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v2
31+
with:
32+
languages: ${{ matrix.language }}
33+
config-file: ./.github/codeql/codeql-configuration.yml
34+
35+
- name: Autobuild
36+
uses: github/codeql-action/autobuild@v2
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)