Skip to content

ci: add RustSec advisory scan (cargo audit) — audit Medium (#29) - #37

Merged
tonibergholm merged 1 commit into
mainfrom
ci/rustsec-audit
Jul 10, 2026
Merged

tonibergholm merged 1 commit into
mainfrom
ci/rustsec-audit

Conversation

@tonibergholm

Copy link
Copy Markdown
Member

Executes wayfinder ticket #29 (map #24, the one in-map execution item): closes the 2026-07-09 audit's Medium — no lockfile advisory scan in CI.

  • Tool: cargo audit via rustsec/audit-check@v2 (RustSec org's own action, pinned by major tag like the repo's other actions).
  • Wiring: separate audit.yml (the codeql.yml pattern) — the ticket suggested ci.yml, but the scan needs a daily cron (new advisories must surface without a code change) and Cargo.toml/Cargo.lock path filters, neither of which fit the test-matrix workflow.
  • Pinning policy: action pinned @v2; the advisory DB is deliberately unpinned (fetched live per run — that's the mechanism by which new advisories flag).
  • Posture: vulnerabilities fail the job; informational advisories (unmaintained) warn.
  • Current state: local cargo audit against today's lockfile is clean — zero vulnerabilities, one warning (RUSTSEC-2026-0173: proc-macro-error2 unmaintained, via defmt-macros), so this lands green.

This PR's own checks exercise the new job (the path filter matches the workflow file).

https://claude.ai/code/session_01LhadyW9scQL95h3ag9yySB

New audit.yml workflow (separate from ci.yml, like codeql.yml, to
allow a daily cron + lockfile path filters without rerunning the test
matrix): rustsec/audit-check@v2 on Cargo.toml/Cargo.lock changes,
daily schedule, and manual dispatch. Advisory DB is deliberately
fetched live each run; vulnerabilities fail, unmaintained-crate
advisories warn. Current lockfile scans clean (one warning:
RUSTSEC-2026-0173, proc-macro-error2 via defmt-macros).

Claude-Session: https://claude.ai/code/session_01LhadyW9scQL95h3ag9yySB
@tonibergholm
tonibergholm merged commit 24fc58e into main Jul 10, 2026
6 checks passed
@tonibergholm
tonibergholm deleted the ci/rustsec-audit branch July 10, 2026 07:23
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