Skip to content

Commit b929eb7

Browse files
authored
Add CodeQL scanning (#1431)
1 parent 36163f0 commit b929eb7

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 4 additions & 0 deletions
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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# copied from microsoft/TypeScript; see that file for boilerplate commentary
2+
# (which was certainly copied from somewhere else)
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+
if: github.repository == 'microsoft/TypeScript-DOM-lib-generator'
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
with:
21+
# We must fetch at least the immediate parents so that if this is
22+
# a pull request then we can checkout the head.
23+
fetch-depth: 2
24+
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@v2
27+
with:
28+
config-file: ./.github/codeql/codeql-configuration.yml
29+
30+
- name: Autobuild
31+
uses: github/codeql-action/autobuild@v2
32+
33+
- name: Perform CodeQL Analysis
34+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)