-
Notifications
You must be signed in to change notification settings - Fork 4
76 lines (60 loc) · 1.53 KB
/
Copy pathaudit.yaml
File metadata and controls
76 lines (60 loc) · 1.53 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Audit
on:
push:
branches: ["main"]
pull_request:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
CLICOLOR_FORCE: ""
jobs:
rust-sec:
name: RustSec - ${{ matrix.workspace.name }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
workspace:
- { name: Client, path: client }
- { name: Host, path: host }
defaults:
run:
working-directory: ${{ matrix.workspace.path }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install `cargo audit`
uses: taiki-e/install-action@v2
with:
tool: cargo-audit
- name: Run `cargo audit`
run: cargo audit
npm:
name: NPM Audit - `${{ matrix.package.name }}`
runs-on: ubuntu-slim
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
package:
- { name: js-bindgen-cli-lib, path: host/cli-lib/src/js }
- { name: js-bindgen-runner, path: host/runner/src/js }
defaults:
run:
working-directory: ${{ matrix.package.path }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Generate Lockfile
run: npm install --package-lock-only --no-audit --no-fund
- name: Run `npm audit`
run: npm audit