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: - "*"