Skip to content

Commit d490456

Browse files
lfranckeclaude
andcommitted
ci: build cargo-audit against stable rust toolchain
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>
1 parent d7d7ac1 commit d490456

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/security_audit.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@ jobs:
2121
token: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
24+
# Build against stable because cargo-audit sometimes depends on things
25+
# that require a newer Rust version than our pinned toolchain. This does
26+
# not influence the result, so it should be safe.
27+
env:
28+
RUSTUP_TOOLCHAIN: stable
2429
with:
2530
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)