-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.25 KB
/
security.yml
File metadata and controls
49 lines (45 loc) · 1.25 KB
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
44
45
46
47
48
49
name: Security
on:
pull_request:
schedule:
# Run every Wednesday on 00:00
- cron: "0 0 * * 3"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
owasp_dependency_check:
runs-on: ubuntu-latest
name: OWASP Dependency Check
steps:
- name: Checkout
uses: actions/checkout@v3
- name: NPM install
run: npm ci
- name: Depcheck
uses: dependency-check/Dependency-Check_Action@main
id: Depcheck
with:
project: "test"
path: "."
format: "HTML"
# https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html
args: >
--failOnCVSS 7
--enableRetired
--nodeAuditSkipDevDependencies
--nodePackageSkipDevDependencies
- name: Upload Test results
uses: actions/upload-artifact@master
with:
name: Depcheck report
path: ${{github.workspace}}/reports
npm_audit:
runs-on: ubuntu-latest
name: NPM Audit
steps:
- name: Checkout
uses: actions/checkout@v3
- name: NPM install
run: npm ci
- name: Audit
run: npm audit --omit=dev # or yarn audit --groups dependencies