Skip to content

ci: fix Security Audit ARM64 failure — switch to rustsec/audit-check action#62

Merged
ferhimedamine merged 1 commit into
mainfrom
fix/cargo-audit-arm64
May 13, 2026
Merged

ci: fix Security Audit ARM64 failure — switch to rustsec/audit-check action#62
ferhimedamine merged 1 commit into
mainfrom
fix/cargo-audit-arm64

Conversation

@ferhimedamine
Copy link
Copy Markdown
Contributor

Problem

CI fails on the Security Audit step on ARM64 runners (run #25773454119):

fatal error: .../aws-lc-sys-0.37.0/aws-lc/generated-src/linux-aarch64/crypto/test/trampoline-armv8.S: No such file or directory

cargo install cargo-audit --locked compiles cargo-audit v0.22.1 from source, which transitively pulls in aws-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.

  • Removes: dtolnay/rust-toolchain, Swatinem/rust-cache, and the two cargo install/run steps
  • Adds: rustsec/audit-check@v2 with GITHUB_TOKEN (for check annotations)
  • Adds: checks: write job-level permission (required for GitHub check annotations)

No CVEs are suppressed or skipped — this is a tooling change only.

Test plan

  • Security Audit job passes on ARM64 runner
  • No legitimate CVE findings are missed
  • Other CI jobs (check, clippy, fmt, test) unaffected

🤖 Generated with Claude Code

…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>
@ferhimedamine ferhimedamine added the auto-merge Auto-merge when CI passes label May 13, 2026
@ferhimedamine ferhimedamine merged commit aea7cae into main May 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Auto-merge when CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant