Skip to content

ci: add cargo audit advisory checking - #32

Merged
dottie-weaver merged 1 commit into
mainfrom
ci/cargo-audit
May 31, 2026
Merged

ci: add cargo audit advisory checking#32
dottie-weaver merged 1 commit into
mainfrom
ci/cargo-audit

Conversation

@dottie-weaver

Copy link
Copy Markdown
Contributor

Closes #23

What changed

  • CI: New audit job runs cargo audit on every push and PR using taiki-e/install-action@cargo-audit for installation.
  • scripts/audit: Convenience wrapper for local use. Exits with a clear message if cargo-audit is not installed.
  • AGENTS.md: Documents the audit workflow. Audit is a separate security gate, not part of ./scripts/check. Normal development workflow is unchanged.

Design decisions

  • Audit runs as its own CI job, parallel with the existing rust job. A vulnerable dependency should block merge regardless of whether tests pass.
  • ./scripts/check is untouched — no new local-tool dependency for normal development.
  • scripts/audit is optional: if cargo-audit is not installed locally, it prints instructions and exits non-zero. CI always has it via the install action.
  • Used taiki-e/install-action for CI installation — fast, well-maintained, and doesn't require a separate cache step.

Verification

  • ./scripts/check passes locally (all 39 tests green)
  • cargo audit passes clean locally (0 vulnerabilities)
  • No code changes — CI config and docs only

Autonomy declaration

Safe to auto-merge on approval. No workflow files in the existing CI were modified; a new parallel job was added.

- Add audit job to CI: installs cargo-audit via taiki-e/install-action
  and runs cargo audit on every push and PR.
- Add scripts/audit convenience wrapper for local use, with a clear
  error message if cargo-audit is not installed.
- Audit is a separate security gate, not part of ./scripts/check.
  Normal development workflow is unchanged.
- Update AGENTS.md to document the audit workflow and clarify the
  relationship between check and audit.

Closes #23
@dottie-weaver
dottie-weaver merged commit 39713bf into main May 31, 2026
2 checks passed
@dottie-weaver
dottie-weaver deleted the ci/cargo-audit branch May 31, 2026 23:41
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.

ci: add cargo audit advisory checking

1 participant