-
Notifications
You must be signed in to change notification settings - Fork 113
36 lines (29 loc) · 968 Bytes
/
audit.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
# https://github.com/samuelmeuli/action-electron-builder
name: Run audit checks
on:
pull_request:
jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 18
- name: Refresh
run: |
sudo apt-get update
- name: Setup dependencies
run: |
sudo apt-get install -y libusb-1.0-0-dev libudev-dev
- name: Install deps with big timeout
run: |
yarn install --network-timeout 600000
- name: Audit dependencies
# Now using the audit tool from IBM which provides more advanced configurability
# The -a param for a whitelist of non-issues to ignore. E.g is the false positive submission on lodash
# https://github.com/lodash/lodash/issues/5261
run: |
yarn run-audit