ci(audit): wire cargo deny supply-chain gate (#3377)

This commit is contained in:
安正超
2026-06-12 11:11:40 +08:00
committed by GitHub
parent 08c586d843
commit 559bf9d9d7
2 changed files with 27 additions and 6 deletions
+23
View File
@@ -20,12 +20,14 @@ on:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'deny.toml'
- '.github/workflows/audit.yml'
pull_request:
branches: [ main ]
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'deny.toml'
- '.github/workflows/audit.yml'
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC
@@ -63,6 +65,27 @@ jobs:
path: audit-results.json
retention-days: 30
cargo-deny:
name: Cargo Deny
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Rust environment
uses: ./.github/actions/setup
with:
cache-shared-key: rustfs-cargo-deny
- name: Install cargo-deny
uses: taiki-e/install-action@v2
with:
tool: cargo-deny
- name: Run cargo-deny
run: cargo deny check --hide-inclusion-graph advisories sources bans licenses
dependency-review:
name: Dependency Review
runs-on: ubuntu-latest