ci: fix Security Audit ARM64 failure — switch to rustsec/audit-check action#62
Merged
Conversation
…action cargo-audit v0.22.1 fails to compile on ARM64 runners due to aws-lc-sys 0.37.0 missing trampoline-armv8.S. Replace the manual cargo install + run with rustsec/audit-check@v2, which downloads a pre-built binary and avoids the ARM64 compilation issue entirely. Adds checks: write permission at job level so the action can post GitHub check annotations. Fixes: DAK-4571 Co-Authored-By: Claude Sonnet 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.
Problem
CI fails on the
Security Auditstep on ARM64 runners (run #25773454119):cargo install cargo-audit --lockedcompiles cargo-audit v0.22.1 from source, which transitively pulls inaws-lc-sys 0.37.0. That package is missing an ARM64 trampoline file, causing the build to fail. This is a cargo-audit upstream issue, not a dakera-cli code issue.Fix
Replace the manual install + run steps with
rustsec/audit-check@v2, which downloads a pre-built cargo-audit binary — no ARM64 compilation required.dtolnay/rust-toolchain,Swatinem/rust-cache, and the two cargo install/run stepsrustsec/audit-check@v2with GITHUB_TOKEN (for check annotations)checks: writejob-level permission (required for GitHub check annotations)No CVEs are suppressed or skipped — this is a tooling change only.
Test plan
Security Auditjob passes on ARM64 runner🤖 Generated with Claude Code