Repository navigation
Description
Description
Cargo.lock is committed (correct for a binary crate), but nothing checks it against the RustSec advisory database. In the Rust SDK, refreshing a stale lockfile cleared 10 advisories that cargo audit had been reporting without anyone noticing (openapi-rust-sdk#14). For a CLI that handles API tokens, we want to know about these as soon as they appear.
Proposal
- Run
cargo install cargo-audit && cargo auditlocally and report the result in the PR. If there are advisories, fix them withcargo update(and dependency bumps if needed). - Add a security job to CI, for example with
rustsec/audit-checkor a plaincargo auditstep, on push, PR, and a weeklyscheduleso new advisories show up even when nobody pushes.
Benefits
- ✅ Known vulnerabilities in dependencies are caught automatically
- ✅ Lockfile updates become visible, reviewable diffs
- ✅ Same security baseline as the Rust SDK
Acceptance criteria
-
cargo auditpasses, or remaining advisories are documented with a reason - CI runs the audit on push, PR and on a weekly schedule
Context
This is part of bringing openapi-cli up to the same baseline the Openapi® Rust SDK just reached with its move to the Rust 2024 edition (openapi-rust-sdk#14, announced in discussions#86). The CLI already uses edition = "2024"; these issues make it hold up in practice.
New here?
This is a small, self-contained task: a great first contribution to an Openapi® project. Comment below to claim it, then fork, branch and open a PR referencing this issue. Questions are welcome in the thread. Once merged, you are welcome to add yourself to the official Openapi® contributors registry. 🦀
Activity