ci: add cargo audit advisory checking - #32
Merged
Merged
Conversation
- 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
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.
Closes #23
What changed
auditjob runscargo auditon every push and PR usingtaiki-e/install-action@cargo-auditfor installation.cargo-auditis not installed../scripts/check. Normal development workflow is unchanged.Design decisions
rustjob. A vulnerable dependency should block merge regardless of whether tests pass../scripts/checkis untouched — no new local-tool dependency for normal development.scripts/auditis optional: ifcargo-auditis not installed locally, it prints instructions and exits non-zero. CI always has it via the install action.taiki-e/install-actionfor CI installation — fast, well-maintained, and doesn't require a separate cache step.Verification
./scripts/checkpasses locally (all 39 tests green)cargo auditpasses clean locally (0 vulnerabilities)Autonomy declaration
Safe to auto-merge on approval. No workflow files in the existing CI were modified; a new parallel job was added.