-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1015 Bytes
/
security.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: "Security scan"
on:
push:
branches: [master]
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
jobs:
code-security:
name: Code security scan
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
dependency-security:
name: Dependency security scan
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/[email protected]
name: Install node
with:
node-version: '12.x'
- name: Build dependencies
run: npm ci --only=production
- name: Validate security of dependencies
run: npx audit-ci --high -a 1550 -a 1500 -a 786