Skip to content

Commit 6c4963f

Browse files
authored
ci: add cargo audit cron job (#43)
1 parent 7583a1a commit 6c4963f

File tree

3 files changed

+44
-4
lines changed

3 files changed

+44
-4
lines changed

.cargo/audit.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[advisories]
2+
ignore = [
3+
# `ark-relations` is an unactivated optional transitive dep (via `ark-bn254`'s`r1cs` feature)
4+
# that is never compiled but still appears in Cargo.lock, and hence gets considered by `cargo
5+
# audit`. There is an upstream fix for `ark-relations`, but it's not yet published to crates.io.
6+
# See https://github.com/arkworks-rs/snark/issues/413.
7+
"RUSTSEC-2025-0055",
8+
9+
# `bincode` is unmaintained; transitive reth dep.
10+
"RUSTSEC-2025-0141",
11+
12+
# `derivative` is unmaintained; transitive dep via revm's `ark-ff`.
13+
"RUSTSEC-2024-0388",
14+
15+
# `paste` is unmaintained; transitive dep via revm's `ark-ff` and alloy's `syn-solidity`.
16+
"RUSTSEC-2024-0436",
17+
18+
# `lru` IterMut unsoundness; transitive dep via reth's `discv5` and `ratatui`.
19+
# Neither crate calls `iter_mut()` on the LruCache, so the affected code path is never hit.
20+
"RUSTSEC-2026-0002",
21+
]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Security Audit
2+
# This workflow uses rustsec/audit-check to check for security vulnerabilities
3+
# On scheduled runs: automatically creates GitHub issues for findings
4+
# On push/PR: creates status checks that fail when vulnerabilities are found
5+
6+
on:
7+
schedule:
8+
# Run daily at 09:00 UTC
9+
- cron: '0 9 * * *'
10+
workflow_dispatch: # Allow manual runs
11+
12+
permissions: # these permissions are required for the workflow to run
13+
contents: read # Required to checkout the repository
14+
issues: write # Required to create issues (scheduled runs)
15+
checks: write # Required to create status checks (push/PR)
16+
17+
jobs:
18+
security-audit:
19+
uses: init4tech/actions/.github/workflows/rust-audit-security.yml@main

Cargo.lock

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

0 commit comments

Comments
 (0)