Skip to content

Security Audit

Security Audit #94

Workflow file for this run

name: Security Audit
on:
push:
branches: [main]
paths:
- ".github/workflows/audit.yml"
- "Cargo.toml"
- "Cargo.lock"
- "src-tauri/Cargo.toml"
- "src-tauri/Cargo.lock"
- "crates/**/Cargo.toml"
- "package.json"
- "package-lock.json"
pull_request:
branches: [main]
paths:
- ".github/workflows/audit.yml"
- "Cargo.toml"
- "Cargo.lock"
- "src-tauri/Cargo.toml"
- "src-tauri/Cargo.lock"
- "crates/**/Cargo.toml"
- "package.json"
- "package-lock.json"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
concurrency:
group: audit-${{ github.ref }}
cancel-in-progress: true
jobs:
cargo-audit:
name: cargo-audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
run: cargo install cargo-audit --locked
- name: Run cargo audit
run: cargo audit --file src-tauri/Cargo.lock --ignore RUSTSEC-2023-0071
npm-audit:
name: npm audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Security audit
run: npm audit --audit-level=high