Files
❤是纱雾酱哟~ 53a0971826 chore(ci): Explicitly limit token permissions (#7519)
- Explicitly set permission boundaries for `GITHUB_TOKEN`
- Prevent overly permissive default tokens

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
2026-07-19 10:15:27 +00:00

39 lines
760 B
YAML

name: Cargo Audit
on:
workflow_dispatch:
permissions:
contents: read
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@v7
- 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 }}