chore: cargo-audit workflow

This commit is contained in:
Tunglies
2026-04-21 23:50:59 +08:00
parent 711deccfcc
commit f03a56dc42
2 changed files with 36 additions and 1 deletions
+35
View File
@@ -0,0 +1,35 @@
name: Cargo Audit
on:
workflow_dispatch:
env:
HUSKY: 0
jobs:
audit:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: macos-latest
target: aarch64-apple-darwin
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Run Cargo Audit
uses: rustsec/audit-check@v2
with:
token: ${{ secrets.WORKFLOW_AUDIT_TOKEN }}