Skip to content

ci: Replace cargo audit with cargo-deny on every PR - #6821

Draft
mangas wants to merge 4 commits into
masterfrom
mangas/cargo-deny
Draft

mangas wants to merge 4 commits into
masterfrom
mangas/cargo-deny

Conversation

@mangas

@mangas mangas commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

What it does

  • Deletes .github/workflows/audit.yml. It ran cargo audit (advisories only) on a schedule only (its push trigger is commented out), and has failed every run since at least Oct 29 without anyone acting on it.
  • Adds .github/workflows/cargo-deny.yml: cargo deny check advisories and cargo deny check bans licenses sources as two jobs, on every pull_request (no paths filter), push to master, and workflow_dispatch. No schedule: a failed background run goes unread; PRs are the gate. Actions are pinned by SHA.
  • Adds deny.toml: a license allow-list, crates.io plus the three git deps we use (graphprotocol/pgtemp, graphprotocol/stable-hash, tower-rs/tower) as allowed sources, duplicate versions as warnings, and an advisory ignore list with a reason per entry: 5 unmaintained crates with no drop-in fix, crypto-bigint's timing advisory (no private keys held), and 20 wasmtime advisories fixed only in 48.x+ (needs rustc 1.95, toolchain pinned to 1.94). 19 of those don't apply (component model, WASI, threads-less builds, unused APIs); RUSTSEC-2026-0379 does affect aarch64 builds and is accepted until the toolchain pin moves.

Depends on #6824 (non-wasmtime bumps) and #6823 (wasmtime 46.0.3). Until both merge, cargo deny check advisories fails here; after a rebase it should pass. bans licenses sources passes now. Then make both jobs required checks, so a new advisory blocks PRs until fixed or ignored with a reason.

Tests: none; CI only. Checked locally with cargo-deny 0.21.0.

Run cargo deny check advisories and cargo deny check bans licenses sources on every pull request, master push and weekly, in place of the scheduled-only cargo audit workflow.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant