8000 deps: fix RustSec advisories, take over cargo group, add advisories gate by avelino · Pull Request #119 · avelino/mcp · GitHub
[go: up one dir, main page]

Skip to content

deps: fix RustSec advisories, take over cargo group, add advisories gate - #119

Merged
avelino merged 2 commits into
mainfrom
avelino/deps/rustsec-and-cargo-group
Oct 14, 2026
Merged

avelino merged 2 commits into
mainfrom
avelino/deps/rustsec-and-cargo-group

Conversation

@avelino
@avelino avelino commented Oct 14, 2026
Copy link
Copy Markdown
Owner

What

  • Security bumps (Cargo.lock): rustls 0.23.43 -> 0.23.45 (RUSTSEC-2026-0285 / GHSA-2mjx-qc3c-rqvc, Dependabot alert Child process stderr is silenced — server errors are invisible #12, its own update run failed on 10-08), rustls-webpki 0.103.13 -> 0.103.15, h2 0.4.15 -> 0.4.16 (RUSTSEC-2026-0258), quinn-proto 0.11.16 -> 0.11.18 (RUSTSEC-2026-0338..0342), chacha20 0.10.1 -> 0.10.2 (yanked).
  • Takes over Bump the cargo group with 13 updates #117 (cargo group): same manifest bumps (comfy-table 8, dirs 7, opentelemetry/sdk/otlp 0.33, tracing-opentelemetry 0.34, plus the lockfile group). comfy-table 8 removed Table::load_preset; the four call sites in src/output.rs now use Table::load_style(presets::NOTHING), the v8 replacement (presets are TableStyle constants now). Bump the cargo group with 13 updates #117 can be closed as superseded after this merges.
  • RustSec gate: new advisories job in ci.yml running cargo deny check advisories (EmbarkStudios/cargo-deny-action pinned by SHA, v2.1.1) with a deny.toml that has no ignores. Dependabot only surfaced the rustls alert; this catches the rest.
  • Workflow permissions: top-level permissions: contents: read in ci.yml and publish-crate.yml (closes the CodeQL actions/missing-workflow-permissions alerts). Neither workflow uses GITHUB_TOKEN for writes; crates.io publish uses CARGO_REGISTRY_TOKEN.

Merge order

Merge after #118 (github-actions group, touches the same two workflow files).

How it was tested

Rust 1.99, CARGO_BUILD_JOBS=2:

  • cargo deny check advisories (cargo-deny 0.20.2): main = 2 errors (RUSTSEC-2026-0258 h2, RUSTSEC-2026-0285 rustls); this branch = advisories ok.
  • cargo fmt --check: clean.
  • cargo clippy --all-targets -- -D warnings: clean.
  • cargo test: 877 passed, 0 failed.
  • cargo build --release, mcp --version -> mcp 0.6.2; mcp --list in a pseudo-terminal renders the borderless table as before (header + row, no borders).
  • actionlint on all workflows: clean.

Not tested locally: Docker images (no Docker on the build box); the CI docker job builds and smoke-tests both. Release Beta runs on main after merge.

Copilot AI balanced review requested due to automatic review settings October 14, 2026 09:49
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The advisory configuration does not fail transitive unsound advisories despite claiming whole-graph enforcement.

1 open finding
What changed in this PR

Updates dependencies to address RustSec advisories, adds an advisory CI gate, and restricts workflow permissions.

Changes:

  • Upgrades vulnerable and grouped Rust dependencies.
  • Migrates comfy-table calls to its v8 API.
  • Adds cargo-deny advisory checks and read-only workflow permissions.
File Description
Cargo.toml Updates direct dependency versions.
Cargo.lock Locks upgraded security and grouped dependencies.
src/​output.rs Adapts table styling to comfy-table v8.
deny.toml Configures advisory policy.
.github/​workflows/​ci.yml Adds the advisory gate and permissions.
.github/​workflows/​publish-crate.yml Adds read-only permissions.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread deny.toml Resolved
Copilot AI balanced review requested due to automatic review settings October 14, 2026 11:04
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The dependency migrations and pinned advisory action are consistent with their upstream APIs, with comprehensive validation reported.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@avelino
avelino merged commit c9f2178 into main Oct 14, 2026
9 checks passed
@avelino
avelino deleted the avelino/deps/rustsec-and-cargo-group branch October 14, 2026 11:10
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.

2 participants

0