ci: audit from retryable RustSec snapshot
Some checks failed
CI / verify (push) Failing after 14m3s

This commit is contained in:
237899745
2026-07-26 07:47:34 +08:00
parent b4ace3bc68
commit 25e889190d

View File

@@ -99,7 +99,17 @@ jobs:
run: cargo install cargo-audit --locked --version 0.22.2 run: cargo install cargo-audit --locked --version 0.22.2
- name: Audit Rust dependencies - name: Audit Rust dependencies
run: cargo audit run: |
set -Eeuo pipefail
audit_db="$RUNNER_TEMP/rustsec-advisory-db"
mkdir -p "$audit_db"
curl --proto '=https' --tlsv1.2 --fail --silent --show-error \
--location --retry 10 --retry-all-errors \
https://codeload.github.com/RustSec/advisory-db/tar.gz/refs/heads/main \
| tar -xz --strip-components=1 -C "$audit_db"
test -f "$audit_db/config.toml"
test -d "$audit_db/crates"
cargo audit --db "$audit_db" --no-fetch
- name: Install Node.js - name: Install Node.js
run: | run: |