Skip to content

Commit 51eac1d

Browse files
echobtfactorydroid
andauthored
fix(ci): replace rustsec/audit-check with actions-rust-lang/audit (#438)
The rustsec/audit-check@v2 action was failing with exit code 101 when trying to install cargo-audit. This was caused by cargo install compilation failures in the CI environment. Switch to actions-rust-lang/audit@v1, which is a more actively maintained alternative that: - Explicitly installs Rust stable toolchain before cargo-audit - Provides better summary reports with vulnerability details - Is actively maintained (last updated Jan 2026) - Has proper handling of cargo-audit installation Also updated permissions from 'checks: write' to 'issues: write' as required by the new action. Co-authored-by: Droid Agent <droid@factory.ai>
1 parent f6d1a0d commit 51eac1d

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -268,22 +268,16 @@ jobs:
268268
name: Security Audit
269269
runs-on: blacksmith-4vcpu-ubuntu-2404
270270
permissions:
271-
checks: write
272271
contents: read
272+
issues: write
273273
steps:
274274
- uses: actions/checkout@v4
275275

276-
- name: Cache cargo-audit (Blacksmith 4x faster cache)
277-
uses: actions/cache@v4
278-
with:
279-
path: |
280-
~/.cargo/bin/cargo-audit
281-
~/.cargo/advisory-db
282-
key: cargo-audit-${{ runner.os }}
276+
- name: Install Rust stable
277+
uses: dtolnay/rust-toolchain@stable
283278

284-
- uses: rustsec/audit-check@v2
285-
with:
286-
token: ${{ secrets.GITHUB_TOKEN }}
279+
- uses: actions-rust-lang/audit@v1
280+
name: Audit Rust Dependencies
287281

288282
# ==========================================================================
289283
# Final status check (for branch protection) - lightweight - 4 vCPU

0 commit comments

Comments
 (0)