-
Notifications
You must be signed in to change notification settings - Fork 188
58 lines (48 loc) · 1.7 KB
/
Copy pathcve-scanning.yml
File metadata and controls
58 lines (48 loc) · 1.7 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
50
51
52
53
54
55
56
57
58
name: Node.js CVE Scanning
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
paths:
- 'allow-list.json'
- 'package.json'
- 'toolbox/fdc3-workbench/package.json'
- '.github/workflows/cve-scanning.yml'
- 'website/package.json'
# push:
# paths:
# - 'package.json'
# - 'toolbox/fdc3-workbench/package.json'
# - '.github/workflows/cve-scanning.yml'
# - 'website/package.json'
schedule:
# Run every day at 5am and 5pm
- cron: '0 5,17 * * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24.0.2]
steps:
- name: Harden runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install
working-directory: toolbox/fdc3-workbench
- run: npm install
working-directory: website
- run: npx --yes auditjs ossi --whitelist allow-list.json -u ${{ secrets.OSS_INDEX_USERNAME }} -p ${{ secrets.OSS_INDEX_TOKEN }}
if: success() || failure()
- run: npx --yes auditjs ossi --whitelist ../allow-list.json -u ${{ secrets.OSS_INDEX_USERNAME }} -p ${{ secrets.OSS_INDEX_TOKEN }}
working-directory: website
if: success() || failure()