Add cargo audit security gate in CI#21
Merged
Merged
Conversation
Add a Security audit workflow that runs cargo audit on push, on pull requests, and weekly so newly published advisories are caught without a code change. Cargo.lock is gitignored, so the job resolves a fresh lockfile first and audits the versions CI would actually build. An audit.toml ignores five advisories that come only from optional tooling, never the core library or the site: fast-float 0.2.0 (via the historical databend-common-ast 0.0.3 that the time machine compiles) and rustls-webpki 0.101.7 (via tiberius in the Docker-only oracle crate). Each is documented with its source and rationale, and the gate still fails on any new advisory elsewhere.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
=======================================
Coverage 39.59% 39.59%
=======================================
Files 23 23
Lines 2546 2546
=======================================
Hits 1008 1008
Misses 1538 1538 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Adds a Security audit workflow that runs cargo audit on push, on pull requests, and weekly so newly published advisories are caught without a code change. Because Cargo.lock is gitignored, the job resolves a fresh lockfile first and audits the versions CI would actually build.
An audit.toml ignores five advisories that come only from optional tooling, never the core library or the published site: fast-float 0.2.0 (pulled by the historical databend-common-ast 0.0.3 that the time machine compiles to benchmark old releases) and rustls-webpki 0.101.7 (pulled by tiberius in the Docker-only oracle crate, which talks to a trusted local container). Each is documented with its source and rationale, and the gate still fails on any new advisory elsewhere. Unmaintained-crate warnings are left visible but non-blocking.