Skip to content

Commit 8c9d178

Browse files
committed
ci: add an automated vulnerability test by Github CodeQL
1 parent 2c7e4ff commit 8c9d178

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/vulnerability.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'vulnerability test'
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
schedule:
9+
- cron: '0 0 * * 0'
10+
11+
jobs:
12+
codeql:
13+
name: CodeQL
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: ['typescript']
24+
25+
steps:
26+
- name: checkout
27+
uses: actions/checkout@v2
28+
29+
- name: setup CodeQL
30+
uses: github/codeql-action/init@v1
31+
with:
32+
languages: ${{ matrix.language }}
33+
34+
- name: analyse
35+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)