forked from finos/architecture-as-code
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.17 KB
/
license-scanning-node.yml
File metadata and controls
33 lines (30 loc) · 1.17 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
name: License Scanning for Node.js
permissions:
contents: read
on:
schedule:
- cron: '0 8,18 * * 1-5'
push:
paths:
- '**/package-json.lock'
- '**/package.json'
- '.github/workflows/license-scanning-node.yml'
jobs:
scan:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['22.x']
module-folder: ['cli', 'docs', 'shared']
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install --omit=dev --ignore-scripts
working-directory: ${{ matrix.module-folder }}
- run: npm install -g node-license-validator
working-directory: ${{ matrix.module-folder }}
- run: node-license-validator . --allow-licenses Apache-2.0 MIT BSD-2-Clause BSD BSD-3-Clause Unlicense ISC
working-directory: ${{ matrix.module-folder }}