Skip to content

build(justfile): mirror CI's audit advisory ignores in just audit#40

Merged
UnbreakableMJ merged 1 commit into
mainfrom
justfile-audit-ignores
Jun 16, 2026
Merged

build(justfile): mirror CI's audit advisory ignores in just audit#40
UnbreakableMJ merged 1 commit into
mainfrom
justfile-audit-ignores

Conversation

@UnbreakableMJ

Copy link
Copy Markdown
Contributor

Addresses a review note on the justfile (PR #39): just audit ran plain cargo audit, which doesn't carry CI's accepted advisory ignores.

Accuracy note

The finding's stronger claim — that just ci fails locally — isn't correct: RUSTSEC-2024-0436 (paste, unmaintained) and RUSTSEC-2026-0002 (lru, unsound) are warning-class advisories, so cargo audit exits 0 (verified). just ci passed. What was real is the milder issue: local output showed two advisories that CI's rustsec/audit-check@v2 suppresses via its ignore: input — a divergence from "mirrors CI exactly," and a reliance on cargo-audit's default warning-vs-fail behavior.

Fix

just audit now passes --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2026-0002, mirroring the CI audit job's ignore: list (kept in lock-step with .github/workflows/ci.yml). Output now matches the runner's clean run and is robust if cargo-audit ever escalates warnings to failures.

Verified: just audit scans clean and exits 0; just --list renders cleanly. justfile-only — CI jobs (which invoke the cargo commands directly, not just) are unaffected.

🤖 Generated with Claude Code

CI's cargo-audit job ignores RUSTSEC-2024-0436 (paste, unmaintained) and
RUSTSEC-2026-0002 (lru, unsound) — both warning-class, transitive via the
ratatui tree. Plain `cargo audit` exits 0 on these (they're warnings, not
vulnerabilities), so `just ci` did not fail — but it printed advisories CI
suppresses, diverging from the "mirrors CI" intent and relying on
cargo-audit's default warning-vs-fail behavior.

Pass the same `--ignore` list as CI's audit-check `ignore:` input so local
output matches the runner and stays robust if cargo-audit ever escalates
warnings. Kept in lock-step with .github/workflows/ci.yml.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@UnbreakableMJ UnbreakableMJ merged commit ae1eb18 into main Jun 16, 2026
8 checks passed
@UnbreakableMJ UnbreakableMJ deleted the justfile-audit-ignores branch June 16, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant