Skip to content

Add cargo audit security checks to CI #7

Open

Description

@francescobianco

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 audit locally and report the result in the PR. If there are advisories, fix them with cargo update (and dependency bumps if needed).
  • Add a security job to CI, for example with rustsec/audit-check or a plain cargo audit step, on push, PR, and a weekly schedule so 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 audit passes, 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

  1. added
    enhancement
    good first issue
    help wanted
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions