Repository navigation
ci: harden CI for the published redis-mcp crate - #136
Merged
Merged
Conversation
- add an Audit workflow running cargo-deny (advisories separately from bans/licenses/sources) on PRs, main, and a weekly schedule, with a permissive-only deny.toml policy - gate rustdoc warnings (docs.rs builds with all features) - add a stable-toolchain job that resolves the latest compatible dependencies, as crates.io consumers do without our lockfile - cancel superseded PR runs, add job timeouts, and only save rust-cache from main so PR runs stop evicting main's caches
This was referenced Oct 26, 2026
The new advisories job flagged tokio 1.53.1 (AsyncFd::new and related constructors violate I/O safety; fixed in >=1.53.3). Also pin the cargo-deny action's toolchain to 1.90 to match rust-toolchain.toml.
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.
Now that
redis-mcp0.1.0 is on crates.io, tighten CI around what consumers see.Changes
.github/workflows/audit.yml): cargo-deny on PRs, main, and weekly (Mon 06:17 UTC). Advisories run as their own job so a fresh RustSec advisory doesn't mask license/ban/source regressions.deny.tomlallows only the permissive licenses currently in the graph, denies unknown registries/git sources and wildcards, and warns on duplicate versions.cargo doc --workspace --all-features --no-depswith-D warningsin therustjob (mirrors docs.rs).cargo update+ check and lib/bin tests on current stable. Library consumers don't use our lockfile, so this catches semver-compatible dependency releases that break the build.timeout-minuteson every job.Swatinem/rust-cachesaves only from main, so PR job caches stop evicting main's.Local validation
cargo deny --all-features check: advisories ok, bans ok, licenses ok, sources okRUSTDOCFLAGS=-D warnings cargo docclean for both cratesFollow-ups (tracked separately)
mainruleset (Public repository readiness: contributor and maintainer follow-ups #131)redis-mcp, then dropCARGO_REGISTRY_TOKEN