Skip to content

ci: build cargo-audit against stable rust toolchain#14

Merged
lfrancke merged 1 commit into
mainfrom
ci/security-audit-stable-toolchain
Jul 20, 2026
Merged

ci: build cargo-audit against stable rust toolchain#14
lfrancke merged 1 commit into
mainfrom
ci/security-audit-stable-toolchain

Conversation

@lfrancke

Copy link
Copy Markdown
Member

Description

The daily security audit is failing: rustsec/audit-check builds cargo-audit from source using the toolchain pinned in rust-toolchain.toml (1.93.0), and a transitive build dependency (kstring 2.0.4) now requires Rust 1.96.0. The build fails with exit code 101 and the audit never runs.

This overrides RUSTUP_TOOLCHAIN=stable for the audit step so cargo-audit is built with current stable. The toolchain used to build the tool has no effect on the audit result (cargo-audit just reads Cargo.lock against the advisory DB), so this is safe.

Same fix is proposed upstream in the template: stackabletech/operator-templating#612.

🤖 Generated with Claude Code

The daily security audit builds cargo-audit from source using the
toolchain pinned in rust-toolchain.toml. A transitive build dependency
(kstring 2.0.4) now requires Rust 1.96.0, which is newer than the pinned
channel, so the build fails and the audit never runs.

Override RUSTUP_TOOLCHAIN=stable for the audit step so cargo-audit is
built with current stable. The toolchain used to build the tool does not
affect the audit result, so this is safe.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lfrancke
lfrancke merged commit caf44f6 into main Jul 20, 2026
5 checks passed
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