-
Notifications
You must be signed in to change notification settings - Fork 86
42 lines (33 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
37
38
39
40
41
42
name: Audit
on:
pull_request:
branches:
- master
- zowe-v1-lts
- next
# schedule:
# - cron: '0 10 * * *'
jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Use NPM v8
id: npm8
run: npm install -g npm@^8
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Check Node Vulnerabilities
run: npm audit --production --audit-level=moderate
# TODO Consider using actions-rs/audit-check after https://github.com/actions-rs/audit-check/issues/116 is fixed
- name: Check Daemon Vulnerabilities
working-directory: zowex
run: cargo audit --deny warnings
- name: Check Secrets SDK Vulnerabilities
working-directory: packages/secrets/src/keyring
run: cargo audit --deny warnings