Repository navigation
Audit workflow: cargo-deny + Trivy on every lockfile, failing on stale ignores (sc-9611) - #257
Open
ndbroadbent wants to merge 2 commits into
Open
ndbroadbent wants to merge 2 commits into
ndbroadbent wants to merge 2 commits into
Conversation
…ree Rust workspaces and Trivy for every lockfile, failing on stale ignores (sc-9611) Starts green: pin-project-lite 0.2.18 (yanked) updated; rsa's Marvin advisory ignored (dev-dependency only); jsonwebtoken's CVE-2026-25537 ignored until 5 Jun 2027 (app/ only signs JWTs; the upgrade is its own story). pnpm audit isn't used: it reads the gallery workspace's astro/ folder as the astro package and reports 19 false advisories. Its own workflow, so a new advisory never holds back the CLI release (release.yml follows CI).
…toml fails on stale entries, Trivy ignores expire (sc-9611)
This branch has not been deployed
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.