Repository navigation
Add cargo audit / bun audit CI gate (closes #1719) - #1727
Closed
mstomar125 wants to merge 1 commit into
Closed
mstomar125 wants to merge 1 commit into
mstomar125 wants to merge 1 commit into
Conversation
No dependency-advisory scanning ran in CI. Adds a `Dependency audit` workflow running `cargo audit` (RustSec DB) and `bun audit` on every PR (+ workflow_dispatch); a live advisory fails its job and surfaces as a red check on the PR. The dependency graph is already fully pinned (Cargo.lock + bun.lock committed), so this closes the missing DETECTION layer for the T9 supply-chain hardening bar. Co-Authored-By: Claude Opus 4.8 <[email protected]>
mstomar125
marked this pull request as draft
July 24, 2026 12:32
This was referenced Jul 24, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the missing detection layer for supply-chain threat T9. The dependency graph is already fully pinned (no git/path/wildcard deps;
Cargo.lock+bun.lockcommitted), but nothing scanned those pins against a live advisory database. This adds aDependency auditworkflow that runscargo audit(RustSec) andbun auditon every PR; a live advisory fails its job and surfaces as a red check.Changes
.github/workflows/audit.yml(new) — two independent jobs onubuntu-latest:cargo audit (RustSec)— installscargo-auditviataiki-e/install-action@v2, runscargo audit(readsCargo.lockonly, no build/toolchain-target setup needed).bun audit—bun install --frozen-lockfilethenbun audit.pull_request(not the dangerouspull_request_target, so untrusted PR code runs with a read-only token) +workflow_dispatch.permissions: contents: read(minimal),concurrencywithcancel-in-progress.House-style alignment
Matches the repo's existing workflows:
actions/checkout@v7andoven-sh/setup-bun@v2pinned tobun-version: "1.3.11"(per an independent review comparing againstrelease.yml/nightly-webkit.yml).Notes
continue-on-erroranywhere — advisories fail hard, as intended.cargo audit (RustSec)andbun auditas required status checks in branch-protection (a repo-settings concern, outside this YAML).Verification
test:all+cargo build+test:e2e) green.pull_request(not_target) is the safe trigger.Closes #1719.