Repository navigation
Audit workflow: cargo-deny + Trivy on every lockfile, failing on stale ignores (sc-9611) - #257
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
ci-workflow-security
branch
2 times, most recently
from
December 5, 2026 06:23
fad64cf to
8ef17c8
Compare
ndbroadbent
force-pushed
the
ci-audits
branch
from
December 5, 2026 06:35
5d1a83b to
af43e17
Compare
ndbroadbent
force-pushed
the
ci-audits
branch
5 times, most recently
from
December 5, 2026 11:49
5a72a6c to
302e1b3
Compare
…ree Rust workspaces and Trivy for every lockfile, failing on stale ignores; pnpm overrides for the gallery example sites' vulnerable build tooling, so it starts green (sc-9611)
ndbroadbent
force-pushed
the
ci-audits
branch
from
December 5, 2026 16:43
302e1b3 to
a669251
Compare
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.
Third PR for sc-9611: dependency audit and licence policy. It's stacked on #256 (for
mise.toml) and retargets once that merges.New workflow: Audit (job
audit). It runs on pull requests, on pushes to main, and daily at 04:41 UTC.clients/gallery/rust, and its Loco example. Each has adeny.tomlbeside its manifest covering RustSec advisories (yanked crates fail), a licence allow list (exactly what each graph uses today), and crates.io as the only source. It runs with-D advisory-not-detected -D license-not-encountered, so a stale ignore or an allowed licence nothing uses fails..trivyignore.yaml, each with a statement and anexpired_atat most six months out.Why a separate workflow: release.yml publishes the CLI only after a green CI on main. A new advisory can turn the audit red without any change in the repo, and it shouldn't hold back a release. On PRs it gates like any other check; on main, a failure reaches the coordinator through the existing failure subscription.
It starts green:
pin-project-lite0.2.18 was yanked:cargo update -p pin-project-lite(Cargo.lock only).rsa, the Marvin timing attack) is ignored with a reason. It's a dev-dependency only, used in app/'s tests, and has no fixed 0.9 release.jsonwebtoken9.3.1) is ignored until 5 Jun 2027. app/ only signs JWTs (forge/github_app.rs); the bug is in validating them when decoding. The upgrade to 10.3+ is sc-9664.colored): it's an example app nobody ships.wildcards = "allow": the only wildcards are the CLI's and renderer's path dependencies on our own crates. Adding versions there would force a CLI release, and crates.io refuses published wildcards anyway.Not used:
pnpm audit. It reads the gallery workspace'sastro/folder as the npm packageastroand reports 19 advisories, all for versions older than the 7.4.14 in the lockfile.Checked locally: cargo-deny passes all three workspaces, Trivy exits 0 over 10 lockfiles, and actionlint and zizmor are clean.
After merge: add
auditto main's required checks, once it has run on main.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.