-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 914 Bytes
/
security-audit.yml
File metadata and controls
41 lines (32 loc) · 914 Bytes
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
name: Security Audit
on:
workflow_dispatch: # Allow manual triggering
push:
jobs:
rust-audit:
name: Rust Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install cargo-deny
uses: taiki-e/install-action@cargo-deny
- name: Run cargo deny
run: cargo deny --manifest-path src-tauri/Cargo.toml check sources advisories bans --show-stats
npm-audit:
name: NPM Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v5
with:
version: 10.26.2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24.12.0"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run npm audit
run: pnpm audit --audit-level moderate