You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add cargo audit / bun audit dependency-advisory gate to CI #1719
No dependency-advisory scanning runs in CI — .github/workflows/ has only release + nightly-webkit. The dependency graph is otherwise fully pinned (no git/path/wildcard deps; both Cargo.lock and bun.lock committed), so this is the missing detection layer for known-vulnerable transitive deps.
Acceptance criteria
CI job runs cargo audit (RustSec advisory DB) on PRs
The audit gate is built and reviewed in PR #1727 (converted to draft). It is not being merged yet, because merging a hard-fail gate onto the current tree would red every PR regardless of that PR's changes — providing no signal until the pre-existing backlog is cleared.
What was done
New .github/workflows/audit.yml: two independent PR jobs — cargo audit (RustSec) and bun audit. No continue-on-error (advisories fail hard, per the ACs). Safe pull_request trigger (not pull_request_target), permissions: contents: read, concurrency cancel-in-progress. House-style aligned (actions/checkout@v7, oven-sh/setup-bun@v2 pinned to 1.3.11).
Independent adversarial review: CONFIRMED-GOOD.
The gate works — proven by running on its own PR (run 30093186957)
It immediately surfaced real, pre-existing debt:
Rust — 8 vulnerabilities (all transitive):
rustls-webpki ×4 — RUSTSEC-2026-0098/-0099 (name-constraint bypass, URI & wildcard), -0049 (CRL distribution-point matching), -0104 (reachable panic in CRL parsing) — TLS cert-validation path, top priority
Plus 25 warnings (unmaintained gtk-rs GTK3 bindings via Tauri; bincode, paste, proc-macro-error, unic-*; anyhow/lru/memmap2/scc unsoundness).
npm — 57 advisories (4 critical / 18 high / 30 moderate / 5 low), predominantly dev/test tooling (@vitest/browser critical, jsdom, ws, mermaid ×4, @sveltejs/kit/adapter-*, devalue). bun audit --prod does not reduce the count.
Why parked (not merged, not closed)
Merging the hard gate now = permanent red on main until the 8 Rust vulns + 57 npm advisories are triaged. That's a separate, breaking-change-risk remediation (semver cargo update for the Rust vulns; selective/major bumps + accepted-risk triage for npm), tracked in #1728. I won't blanket-ignore 8 real vulns to force this through, and I won't merge a gate that's red-by-default.
bun audit — runs scripts/audit-npm.ts, a self-documenting allowlist wrapper (18 dev/build/test-only + upstream-pinned advisories).
This was blocked because the tree carried 8 Rust vulns + 61 npm advisories that would have red-checked every PR. That backlog was remediated in the same PR (#1728): 2 Rust vulns fixed via cargo update, 14 production/framework npm advisories fixed via same-major overrides (incl. critical shell-quote, high @grpc/grpc-js/protobufjs/devalue), the rest allowlisted with per-entry justification + tracked follow-ups (#1743, #1744).
Verified on this PR: both audit checks reported SUCCESS, and the gate still fails on any new advisory in a non-allowlisted (incl. production) package. Independent adversarial review CONFIRMED-GOOD (no accepted advisory is a real shipped risk).
Activity
mstomar125 commentedon Jul 24, 2026
Status: workflow implemented & correct — PARKED pending advisory remediation (#1728)
The audit gate is built and reviewed in PR #1727 (converted to draft). It is not being merged yet, because merging a hard-fail gate onto the current tree would red every PR regardless of that PR's changes — providing no signal until the pre-existing backlog is cleared.
What was done
.github/workflows/audit.yml: two independent PR jobs —cargo audit(RustSec) andbun audit. Nocontinue-on-error(advisories fail hard, per the ACs). Safepull_requesttrigger (notpull_request_target),permissions: contents: read, concurrency cancel-in-progress. House-style aligned (actions/checkout@v7,oven-sh/setup-bun@v2pinned to1.3.11).The gate works — proven by running on its own PR (run 30093186957)
It immediately surfaced real, pre-existing debt:
Rust — 8 vulnerabilities (all transitive):
rustls-webpki×4 — RUSTSEC-2026-0098/-0099 (name-constraint bypass, URI & wildcard), -0049 (CRL distribution-point matching), -0104 (reachable panic in CRL parsing) — TLS cert-validation path, top priorityquinn-proto— RUSTSEC-2026-0185 (remote memory-exhaustion DoS)quick-xml×2 — RUSTSEC-2026-0194/-0195 (quadratic-runtime + unbounded-alloc DoS)crossbeam-epoch— RUSTSEC-2026-0204 (invalid pointer deref)Plus 25 warnings (unmaintained gtk-rs GTK3 bindings via Tauri;
bincode,paste,proc-macro-error,unic-*;anyhow/lru/memmap2/sccunsoundness).npm — 57 advisories (4 critical / 18 high / 30 moderate / 5 low), predominantly dev/test tooling (
@vitest/browsercritical,jsdom,ws,mermaid×4,@sveltejs/kit/adapter-*,devalue).bun audit --proddoes not reduce the count.Why parked (not merged, not closed)
Merging the hard gate now = permanent red on
mainuntil the 8 Rust vulns + 57 npm advisories are triaged. That's a separate, breaking-change-risk remediation (semvercargo updatefor the Rust vulns; selective/major bumps + accepted-risk triage for npm), tracked in #1728. I won't blanket-ignore8 real vulns to force this through, and I won't merge a gate that's red-by-default.Path to close
audit.tomlallowlist for the unmaintained-only Rust warnings).cargo audit+bun auditto exit 0 onmain.Remediate dependency advisories + add audit CI gate (closes #1728, #1719
mstomar125 commentedon Jul 25, 2026
✅ Completed — audit gate is live and green (PR #1745)
The
Dependency auditworkflow (.github/workflows/audit.yml) now runs on every PR with both jobs green:.cargo/audit.toml(6 upstream-blocked advisories accepted-with-tracking).scripts/audit-npm.ts, a self-documenting allowlist wrapper (18 dev/build/test-only + upstream-pinned advisories).This was blocked because the tree carried 8 Rust vulns + 61 npm advisories that would have red-checked every PR. That backlog was remediated in the same PR (#1728): 2 Rust vulns fixed via
cargo update, 14 production/framework npm advisories fixed via same-majoroverrides(incl. criticalshell-quote, high@grpc/grpc-js/protobufjs/devalue), the rest allowlisted with per-entry justification + tracked follow-ups (#1743, #1744).Verified on this PR: both audit checks reported SUCCESS, and the gate still fails on any new advisory in a non-allowlisted (incl. production) package. Independent adversarial review CONFIRMED-GOOD (no accepted advisory is a real shipped risk).