ci: cargo-audit + cargo-deny + cargo-machete on every PR (+ daily audit cron)#400
Merged
ci: cargo-audit + cargo-deny + cargo-machete on every PR (+ daily audit cron)#400
Conversation
There was a problem hiding this comment.
Benchmark
Details
| Benchmark suite | Current: b7ae51a | Previous: 0b5fe57 | Ratio |
|---|---|---|---|
git_collect_tags/single_tag |
47038 ns/iter (± 422) |
This comment was automatically generated by workflow using github-action-benchmark.
2a9668b to
c1973ea
Compare
16d1b35 to
b7ae51a
Compare
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.
Summary
Closes the security/quality gap on the Rust pipeline. Existing CI already covers fmt + clippy + tests + tarpaulin coverage; this adds the supply-chain layer:
Plus a separate daily audit workflow (`.github/workflows/audit.yml`) that runs `rustsec/audit-check` on cron. When a new advisory is published for a dependency we already use, this opens a GitHub issue automatically — no waiting for the next PR to find out.
Why a separate audit cron
`cargo audit` in the PR pipeline catches advisories at code-change time. The cron catches advisories that are published between PRs (e.g. an OpenSSL CVE drops on a Tuesday but no one opens a PR until Friday). The two are complementary, both gratuit.
What's NOT changed
Test plan
Follow-up (other Rust repos)
Same pattern applies to `Kit`, `FerrLabs-Cloud/api`, `FerrTrack-Cloud/api`, `FerrAgents/api`. Worth replicating once this lands and the deny.toml proves stable here.