Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# cargo-audit config (local `cargo audit` and the nightly Audit workflow).
# Keep in sync with the advisory ignores in deny.toml.

[advisories]
ignore = [
# chrono is unmaintained (informational, no vulnerability, no patched
# version). It is a non-optional dependency of rmcp, borg-mcp's MCP SDK.
# Remove once rmcp moves off chrono.
"RUSTSEC-2026-0543",
]
16 changes: 14 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
name: Audit

# Two jobs over the same RustSec advisory database:
# - `cargo deny` gates every change to the dependency graph (push to main,
# pull requests) and is the advisory check that blocks merges.
# - `cargo audit` runs nightly and on demand, and opens an issue per new
# advisory, so advisories published after a merge still surface.
on:
push:
branches: [main]
paths:
- "**/Cargo.toml"
- "**/Cargo.lock"
- ".cargo/audit.toml"
- ".github/workflows/audit.yml"
- "deny.toml"
pull_request:
paths:
- "**/Cargo.toml"
- "**/Cargo.lock"
- ".cargo/audit.toml"
- ".github/workflows/audit.yml"
- "deny.toml"
schedule:
Expand All @@ -23,17 +31,21 @@ permissions:
jobs:
audit:
name: cargo audit
# Not on push/pull_request: there audit-check reports through a check
# run that 404s on pull requests, and `cargo deny` already covers
# advisories for those events.
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: read
# audit-check opens an issue (scheduled runs) and posts a check run.
issues: write
checks: write
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
# Unreleased main: v2.0.0 plus the Node 24 runtime (Node 20 is deprecated).
- uses: rustsec/audit-check@858dc40f52ca2b8570b7a997c1c4e35c6fc9a432 # main (node24)
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
Loading
Loading