Vallie Joseph cb2df24799 Revert "Merge branch 'fhammerl/bump-workflows-node-versions' into vmjoseph/execFile-update"
This reverts commit 7d70dafa7e5ba940043c109a94d7beaa98f8a856, reversing
changes made to 6ece840fda8af7a159518555fb9a30030fff3971.
2022-12-08 04:44:48 +00:00

40 lines
762 B
YAML

name: toolkit-audit
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
build:
name: Audit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install
run: npm install
- name: Bootstrap
run: npm run bootstrap
- name: audit tools
# `|| npm audit` to pretty-print the output if vulnerabilies are found after filtering.
run: npm audit --audit-level=moderate --json | scripts/audit-allow-list || npm audit --audit-level=moderate
- name: audit packages
run: npm run audit-all