mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-05 23:14:31 -06:00
42 lines
904 B
YAML
42 lines
904 B
YAML
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@v5
|
|
|
|
- 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@v5
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Run npm audit
|
|
run: pnpm audit --audit-level moderate
|