Skip to content

ci: add cargo-audit workflow for supply-chain coverage#13

Merged
amavashev merged 1 commit into
mainfrom
ci/cargo-audit
Apr 19, 2026
Merged

ci: add cargo-audit workflow for supply-chain coverage#13
amavashev merged 1 commit into
mainfrom
ci/cargo-audit

Conversation

@amavashev

Copy link
Copy Markdown
Contributor

Summary

  • Adds cargo-audit.yml running cargo audit against the rustsec advisory database.
  • Fills the gap CodeQL leaves — CodeQL has no Rust analyzer, so default-setup is silently a no-op on this repo.
  • Triggers: PRs touching Cargo.lock / Cargo.toml, push to main, weekly Monday cron, and workflow_dispatch.
  • The weekly cron is the most valuable trigger in practice — most Rust supply-chain alerts are CVE announcements against unchanged Cargo.locks.
  • Uses taiki-e/install-action for a pre-built cargo-audit binary (~5s) instead of building from source (~90s).
  • AUDIT.md header updated to cite the new workflow.

Test plan

  • Workflow syntax validates.
  • Self-triggers on this PR (workflow file itself is in the paths filter) — expect green cargo audit run.

amavashev added a commit that referenced this pull request Apr 19, 2026
Resolves three RustSec advisories detected by cargo-audit:

- RUSTSEC-2026-0098 / RUSTSEC-2026-0099 — rustls-webpki 0.103.10
  (announced 2026-04-14): certificate-chain validation issues.
  Fixed upstream in 0.103.12.
- RUSTSEC-2026-0097 — rand 0.9.2: weak-RNG path under specific
  feature combinations. Fixed upstream in 0.9.4.

Both are transitive deps (rustls-webpki via reqwest's rustls-tls
feature; rand via the same TLS stack + retry jitter). Cargo.lock
bump only — no Cargo.toml changes needed; semver-compatible patches.

Build + tests green. cargo-audit workflow (PR #13) will verify
once merged.
amavashev added a commit that referenced this pull request Apr 19, 2026
Resolves three RustSec advisories detected by cargo-audit:

- RUSTSEC-2026-0098 / RUSTSEC-2026-0099 — rustls-webpki 0.103.10
  (announced 2026-04-14): certificate-chain validation issues.
  Fixed upstream in 0.103.12.
- RUSTSEC-2026-0097 — rand 0.9.2: weak-RNG path under specific
  feature combinations. Fixed upstream in 0.9.4.

Both are transitive deps (rustls-webpki via reqwest's rustls-tls
feature; rand via the same TLS stack + retry jitter). Cargo.lock
bump only — no Cargo.toml changes needed; semver-compatible patches.

Build + tests green. cargo-audit workflow (PR #13) will verify
once merged.
CodeQL default-setup is active on this repo but produces no
findings — CodeQL has no Rust analyzer, so it's silently a
no-op. cargo-audit against rustsec/advisory-db is the
ecosystem-standard fix.

Triggers:
- PRs touching Cargo.lock / Cargo.toml — catches vulnerable
  new deps before merge.
- Push to main (same path filter) — belt-and-suspenders.
- Weekly Monday cron — catches CVEs announced after the code
  was written against an unchanged Cargo.lock. Most valuable
  trigger in practice.
- workflow_dispatch — manual re-check.

Uses taiki-e/install-action to fetch a pre-built cargo-audit
binary (~5s) instead of building from source (~90s) — keeps
the weekly run cheap.
@amavashev
amavashev merged commit 00c0f57 into main Apr 19, 2026
7 checks passed
@amavashev
amavashev deleted the ci/cargo-audit branch April 19, 2026 15:35
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