Skip to content

Commit bd09905

Browse files
authored
ci: add codeql workflow
1 parent 9ededb2 commit bd09905

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/codeql-analysis.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Code Scanning"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
CodeQL-Build:
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 2
16+
17+
- run: git checkout HEAD^2
18+
if: ${{ github.event_name == 'pull_request' }}
19+
20+
- name: Initialize CodeQL
21+
uses: github/codeql-action/init@v1
22+
with:
23+
languages: javascript
24+
25+
- name: Autobuild
26+
uses: github/codeql-action/autobuild@v1
27+
28+
- name: Perform CodeQL Analysis
29+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)