forked from finos/calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1012 Bytes
/
cve-scanning.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
name: CVE Scanning
on:
push:
jobs:
node-modules-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Build project with NPM
run: npm install --omit=dev
working-directory: .
- name: Depcheck
uses: dependency-check/Dependency-Check_Action@3102a65fd5f36d0000297576acc56a475b0de98d
id: Depcheck
with:
project: 'calendar'
path: '.'
format: 'HTML'
out: 'reports'
args: >
--suppression allow-list.xml
--nodeAuditSkipDevDependencies
--nodePackageSkipDevDependencies
--failOnCVSS 7
--enableRetired
- name: Upload Test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Depcheck report
path: ${{ github.workspace }}/reports