fix(ci): replace rustsec/audit-check with cacheable cargo-audit#72
Merged
Conversation
The rustsec/audit-check@v2 action builds cargo-audit from source on every run. On ARM runners this compiles aws-lc-sys (C/ASM) which is slow (~5min) and fragile (sensitive to /tmp state). Switch to the same approach used by the main dakera repo: dtolnay/rust-toolchain + rust-cache + conditional cargo install. Also adds CVSS >= 7.0 gate so low-severity advisories don't block CI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
aws-lc-sys assembly compilation is broken on the ARM runner (assembler can't create output files for aarch64 crypto modules). Since cargo-audit only scans Cargo.lock and doesn't need ARM-specific builds, move the audit job to x64 where cargo-audit builds and caches correctly. Co-Authored-By: Claude Opus 4.6 <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.
Summary
rustsec/audit-check@v2with the same cacheable approach used in the maindakerarepodtolnay/rust-toolchain@stable+rust-cacheto the Security Audit job (was missing, unlike all other jobs)cargo install— only builds from source ifcargo-auditisn't already cached/pre-installedRoot cause
The ARM runner's
rustupbinary was missing from/root/.cargo/bin/causing all cargo proxy symlinks to be dangling. Fixed by reinstalling rustup on the runner. Additionally,rustsec/audit-check@v2buildscargo-auditfrom source (includingaws-lc-sysC/ASM compilation) on every run — slow (~5min) and fragile on ARM. This PR makes it cacheable and resilient.Test plan
🤖 Generated with Claude Code