Skip to content

fix: resolve Rust dependency advisories and audit Cargo.lock - #12

Merged
mstuart merged 3 commits into
masterfrom
fix/rust-dependency-security
Aug 23, 2026
Merged

fix: resolve Rust dependency advisories and audit Cargo.lock#12
mstuart merged 3 commits into
masterfrom
fix/rust-dependency-security

Conversation

@mstuart

@mstuart mstuart commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • upgrade Tantivy to 0.26.1 so lru resolves to the patched 0.16.3 release
  • update the transitive rand lock to 0.9.3
  • preserve score-ranked full-text results with Tantivy's explicit order_by_score() collector
  • add RustSec's scheduled audit action for the root Cargo.lock

Verification

  • cargo check --all-targets
  • cargo fmt --package code-memory -- --check
  • cargo clippy --all-targets -- -D warnings
  • cargo build --all-targets
  • cargo build --release
  • cargo test (92 passed, 1 ignored; PostgreSQL-backed)
  • cargo test --all-features (92 passed, 1 ignored; PostgreSQL-backed)
  • cargo metadata --locked --format-version 1 --no-deps
  • cargo tree --locked -i lru -> lru 0.16.3 via tantivy 0.26.1
  • cargo tree --locked -i rand@0.9.3 -> all 0.9 consumers use rand 0.9.3
  • actionlint .github/workflows/security-audit.yml
  • YAML parse and git diff --check
  • npm wrapper: npm ci --ignore-scripts, npm run check, npm exec -- ultracite doctor

Scope note

A fresh full RustSec scan also reports five newer vulnerabilities not present in the two requested Dependabot alerts: crossbeam-epoch, h2, two in postgres-protocol, and tokio-postgres. They are intentionally not bundled into this PR. The new scheduled audit will surface them after merge.

Upgrade Tantivy to 0.26.1 so its lru dependency resolves to 0.16.3, update rand to 0.9.3, and preserve score ordering with Tantivy's explicit collector API.
Add rustsec/audit-check to the scheduled security workflow so the root Cargo.lock is audited alongside the npm wrapper.
Resolve each external action to the verified commit behind its existing version ref and retain readable version comments.
@mstuart
mstuart merged commit 5e8828c into master Aug 23, 2026
3 checks passed
mstuart added a commit that referenced this pull request Aug 24, 2026
* fix(deps): resolve Rust dependency advisories

Upgrade Tantivy to 0.26.1 so its lru dependency resolves to 0.16.3, update rand to 0.9.3, and preserve score ordering with Tantivy's explicit collector API.

* ci: audit Rust dependencies with RustSec

Add rustsec/audit-check to the scheduled security workflow so the root Cargo.lock is audited alongside the npm wrapper.

* ci: pin security audit actions

Resolve each external action to the verified commit behind its existing version ref and retain readable version comments.

---------

Co-authored-by: Mark Stuart <mstuart@users.noreply.github.com>
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.

1 participant