ci: build cargo-audit against stable rust toolchain#14
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The daily security audit is failing:
rustsec/audit-checkbuildscargo-auditfrom source using the toolchain pinned inrust-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=stablefor the audit step socargo-auditis built with current stable. The toolchain used to build the tool has no effect on the audit result (cargo-audit just readsCargo.lockagainst the advisory DB), so this is safe.Same fix is proposed upstream in the template: stackabletech/operator-templating#612.
🤖 Generated with Claude Code