Skip to content

Commit 53f158b

Browse files
echobtfactorydroid
andauthored
fix(ci): override RUSTFLAGS for audit job to fix stable toolchain compatibility (#439)
The global RUSTFLAGS env var sets -Zthreads=32 which is a nightly-only flag. This breaks the security audit job which uses stable Rust to install and run cargo-audit. The fix overrides RUSTFLAGS to empty string for the audit job, allowing cargo-audit to be installed with the stable toolchain. Co-authored-by: Droid Agent <droid@factory.ai>
1 parent 51eac1d commit 53f158b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ jobs:
270270
permissions:
271271
contents: read
272272
issues: write
273+
# Override global RUSTFLAGS - the -Zthreads flag is nightly-only and breaks cargo-audit installation on stable
274+
env:
275+
RUSTFLAGS: ""
273276
steps:
274277
- uses: actions/checkout@v4
275278

0 commit comments

Comments
 (0)