Skip to content

Commit dddfeb0

Browse files
maltesanderclaude
andauthored
ci: install a prebuilt cargo-audit before the security audit (#3)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent eb31817 commit dddfeb0

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/security_audit.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ jobs:
2424
persist-credentials: false
2525
token: ${{ secrets.GITHUB_TOKEN }}
2626

27+
# rustsec/audit-check looks for `cargo-audit` on PATH and falls back to a
28+
# bare `cargo install cargo-audit` when it is missing. That fallback
29+
# passes no `--locked`, so it resolves cargo-audit's dependencies fresh
30+
# and pulls in whatever versions are current, several of which now
31+
# require a newer rustc than the 1.95.0 that rust-toolchain.toml pins for
32+
# this repository. Installing a prebuilt binary first satisfies the PATH
33+
# lookup, so the action never compiles cargo-audit and the pin no longer
34+
# constrains a tool that only ever reads Cargo.lock.
35+
- name: Install cargo-audit
36+
uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4
37+
with:
38+
tool: cargo-audit
39+
2740
- uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
2841
with:
2942
token: ${{ secrets.GITHUB_TOKEN }}

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)