2020-05-07 15:39:38 +00:00
|
|
|
name: toolkit-audit
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-07-21 15:33:05 +00:00
|
|
|
- main
|
2020-05-07 15:39:38 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Audit
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-03 15:59:01 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-05-07 15:39:38 +00:00
|
|
|
|
2022-12-14 00:19:05 +00:00
|
|
|
- name: Set Node.js 16.x
|
2023-01-03 15:38:50 +00:00
|
|
|
uses: actions/setup-node@v3
|
2020-05-07 15:39:38 +00:00
|
|
|
with:
|
2022-12-14 00:19:05 +00:00
|
|
|
node-version: 16.x
|
2020-05-07 15:39:38 +00:00
|
|
|
|
|
|
|
- name: npm install
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: Bootstrap
|
|
|
|
run: npm run bootstrap
|
|
|
|
|
2023-01-03 12:36:38 +00:00
|
|
|
- name: audit tools (without allow-list)
|
2023-01-03 12:34:55 +00:00
|
|
|
run: npm audit --audit-level=moderate
|
2020-05-07 15:39:38 +00:00
|
|
|
|
|
|
|
- name: audit packages
|
|
|
|
run: npm run audit-all
|