fix: Update security workflow actions for Cargo.lock v4 and CVSS 4.0 support#5
Merged
fix: Update security workflow actions for Cargo.lock v4 and CVSS 4.0 support#5
Conversation
The security audit workflow was failing with 'cargo audit did not produce any JSON output' because v1.2.5 used an older cargo-audit that couldn't parse Cargo.lock format v4 (introduced in Rust 1.83). v1.2.6 includes cargo-audit 0.22.0 which properly handles the new format.
cargo-deny v0.18.4 couldn't parse CVSS 4.0 scores now appearing in the RustSec Advisory Database (RUSTSEC-2024-0445). v2.0.14 includes cargo-deny 0.18.6 with rustsec 0.31 which fixes this. See: EmbarkStudios/cargo-deny#804
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.
Summary
Updates the security workflow actions to fix CI failures:
- cargo-audit 0.22.0 properly handles Cargo.lock format v4 (introduced in Rust 1.83)
- See: cargo audit failing to parse our Cargo.lock file after 1.83 upgrade rustsec/rustsec#1296
- cargo-deny 0.18.6 with rustsec 0.31 supports CVSS 4.0 scores now in RustSec advisories
- See: Bug: unsupported CVSS version: 4.0 EmbarkStudios/cargo-deny#804