Files
lancedb/.github/dependabot.yml
T
Will JonesandClaude Opus 5.5 7d33f7ba94 ci: prioritize Rust security updates in dependabot config (#5100)
## Summary

Dependabot wasn't getting security fixes in, and its Rust PRs were
failing CI:

- Security updates were disabled for the repo, so ~170 open alerts never
got a PR. (Now enabled in repo settings; not part of this diff.)
- The `pip` entry for `/python` never touched `uv.lock`, so Python had
no Dependabot PRs at all.
- With `versioning-strategy: lockfile-only`, breaking bumps such as
reqwest 0.12 → 0.13 (#4781), tokenizers 0.19 → 0.23 (#4905), sha2
(#4230) and base64 (#4229) write a `Cargo.lock` that the `Cargo.toml`
requirements don't allow. Every `--locked` build then fails before
compiling.

The priority is Rust, which is statically linked into the shipped
binaries. Python and npm deps are resolved in users' environments, so
those are best effort.

| Entry | Version updates | Security updates |
|---|---|---|
| cargo `/` | weekly, minor/patch, one group | grouped |
| uv `/python` (was `pip`) | monthly, minor/patch, one group | grouped |
| npm `/nodejs`, `/nodejs/examples` | monthly, minor/patch, one group |
grouped |
| docs, docs tests, `/java` | off | grouped |

Breaking bumps are excluded with `allow.update-types`, which the docs
say applies only to version updates. An `ignore` rule would also
suppress security updates. `dependency-type: all` keeps transitive
dependencies in scope for security fixes, which also means the weekly
cargo PR now bumps transitive crates within their allowed ranges.

A security fix that's only available as a breaking bump will still
produce a failing PR and need a manual `Cargo.toml` change.

## Merge Risk

**Door:** two-way; config only.
**Blast Radius:** Dependabot PRs. Config errors only surface after
merge, on Dependabot's next run.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:25:27 -08:00

146 lines
4.1 KiB
YAML

version: 2
# Every entry uses `versioning-strategy: lockfile-only`: bump the lockfile,
# never widen or raise the version requirements in manifests. Those ranges are
# our library consumers' constraints, not ours.
#
# Because of that, version updates are limited to minor and patch bumps.
# A semver-breaking bump (including 0.x minor bumps such as 0.12 -> 0.13)
# can't be satisfied without editing a manifest, so Dependabot would produce a
# lockfile that fails `cargo --locked` and every CI job. We do those by hand.
# This is done with `allow` rather than `ignore` because `allow.update-types`
# only filters version updates; an `ignore` rule would also suppress security
# updates. `dependency-type: all` matters for the same reason: `allow` does
# apply to security updates otherwise, and most advisories are in transitive
# dependencies.
#
# Security updates are grouped so advisories that land together become one PR.
# They ignore `schedule` and `cooldown` and are opened as soon as an advisory
# is published.
updates:
# Highest priority: the root Cargo workspace is statically linked into the
# Node.js and Python native extensions we ship, so users can't patch these
# themselves. Weekly updates keep the lockfile close to current, so security
# fixes are usually small patch bumps.
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
day: wednesday
cooldown:
default-days: 2
versioning-strategy: lockfile-only
allow:
- dependency-type: all
update-types:
- version-update:semver-minor
- version-update:semver-patch
groups:
cargo:
applies-to: version-updates
patterns:
- "*"
cargo-security:
applies-to: security-updates
patterns:
- "*"
# Python and Node.js dependencies are resolved in the user's own environment,
# so these lockfiles only affect our dev/test setup. Lower priority: monthly.
- package-ecosystem: uv
directory: /python
schedule:
interval: monthly
cooldown:
default-days: 2
versioning-strategy: lockfile-only
allow:
- dependency-type: all
update-types:
- version-update:semver-minor
- version-update:semver-patch
groups:
python:
applies-to: version-updates
patterns:
- "*"
python-security:
applies-to: security-updates
patterns:
- "*"
- package-ecosystem: npm
directories:
- /nodejs
- /nodejs/examples
schedule:
interval: monthly
cooldown:
default-days: 2
versioning-strategy: lockfile-only
allow:
- dependency-type: all
update-types:
- version-update:semver-minor
- version-update:semver-patch
groups:
nodejs:
applies-to: version-updates
patterns:
- "*"
nodejs-security:
applies-to: security-updates
patterns:
- "*"
# Docs, docs tests, and Java. Security updates scan these lockfiles whether or
# not they're listed here; these entries only exist to group those PRs.
# `open-pull-requests-limit: 0` turns off version updates.
- package-ecosystem: cargo
directory: /docs/web-tests/rs
schedule:
interval: monthly
open-pull-requests-limit: 0
groups:
docs-cargo-security:
applies-to: security-updates
patterns:
- "*"
- package-ecosystem: npm
directories:
- /docs/web-tests/ts
- /docs/web-tests/blob-v2/ts
schedule:
interval: monthly
open-pull-requests-limit: 0
groups:
docs-npm-security:
applies-to: security-updates
patterns:
- "*"
- package-ecosystem: pip
directories:
- /docs
- /docs/web-tests/blob-v2/py
schedule:
interval: monthly
open-pull-requests-limit: 0
groups:
docs-pip-security:
applies-to: security-updates
patterns:
- "*"
- package-ecosystem: maven
directory: /java
schedule:
interval: monthly
open-pull-requests-limit: 0
groups:
maven-security:
applies-to: security-updates
patterns:
- "*"