chore(deps): update dependencies in /docreader and adjust dependabot configuration
- Updated `pydantic` from 2.12.3 to 2.13.4 and `pypdfium2` from 5.0.0 to 5.8.0 in the `docreader` requirements. - Modified the dependabot configuration to set `open-pull-requests-limit` to 0 and added an `ignore` rule for version updates across all ecosystems, allowing only security updates. - Adjusted settings for `server-security`, `client-security`, `frontend-security`, and `miniprogram-security` groups to streamline security update handling. This change aims to enhance dependency management and maintain security while reducing noise from version update PRs.
This commit is contained in:
+78
-82
@@ -1,39 +1,49 @@
|
||||
# Dependabot configuration for the WeKnora repository.
|
||||
#
|
||||
# Conventions applied to every ecosystem:
|
||||
# Policy:
|
||||
# * `/cli` is the only ecosystem that receives routine version updates
|
||||
# (monthly, grouped into one minor/patch PR and one major PR). It's
|
||||
# a standalone Go binary with a small, well-scoped dependency surface
|
||||
# where staying current is cheap.
|
||||
# * Every other ecosystem (server gomod, /client, frontend npm,
|
||||
# miniprogram npm, docreader pip, github-actions) is configured as
|
||||
# "security-only" — no scheduled version PRs, but CVE security
|
||||
# updates still open PRs automatically.
|
||||
#
|
||||
# * Monthly schedule (one batch / month, predictable maintenance window).
|
||||
# Mirrors caddy / hashicorp-terraform-actions: explicitly chosen over
|
||||
# weekly to keep maintainer review-attention bounded; among 10 surveyed
|
||||
# mainstream OSS configs (daily 7 / weekly 1 / monthly 2) monthly is
|
||||
# the canonical "minimum-noise" choice for contributor-driven projects.
|
||||
# CVE security updates open immediately regardless of this cadence —
|
||||
# `schedule.interval` governs *version* updates only.
|
||||
# * Two `groups` per ecosystem so per-dep PRs never flood:
|
||||
# - `<scope>-deps` bundles minor + patch updates → ONE PR
|
||||
# per ecosystem per month.
|
||||
# - `<scope>-deps-major` bundles semver-major bumps the same way.
|
||||
# Mirrors grafana's `*-breaking` pattern:
|
||||
# surfaces breaking changes as a single
|
||||
# review-required PR rather than silently
|
||||
# ignoring them (which an earlier draft
|
||||
# attempted via `ignore: semver-major`,
|
||||
# but the gh-cli pattern means majors
|
||||
# never surface until someone manually
|
||||
# acts — easier to forget than to do).
|
||||
# * `open-pull-requests-limit: 3` as a safety net so a stalled review
|
||||
# queue can't accumulate stale group PRs (default is 5).
|
||||
# * `commit-message.prefix` set to "chore(deps)" so dependabot PRs
|
||||
# match the repo's Conventional Commits convention out of the box.
|
||||
# npm gets `prefix-development: "chore(deps-dev)"` for devDependency
|
||||
# bumps.
|
||||
# Security-only pattern (mirrors fluent/fluentd-kubernetes-daemonset and
|
||||
# the dependabot docs for "Disabling Dependabot version updates"):
|
||||
#
|
||||
# Adopting these uniformly was driven by an earlier flood of per-dep PRs
|
||||
# (40+) after the initial scan opened against cli/, frontend/, and
|
||||
# miniprogram/ before grouping was configured. Realistic steady-state
|
||||
# now: 1–3 PRs / month total across all 7 ecosystems, plus an occasional
|
||||
# `<scope>-deps-major` PR every few months when upstream cuts a breaking
|
||||
# release.
|
||||
# open-pull-requests-limit: 0 # primary kill-switch for version PRs
|
||||
# ignore: # belt-and-suspenders: drop every
|
||||
# - dependency-name: "*" # non-security update at the source.
|
||||
# update-types: ["version-update"]
|
||||
# groups: # collapse simultaneous CVE PRs into
|
||||
# security-updates: # ONE PR per ecosystem so a noisy
|
||||
# applies-to: security-updates
|
||||
# patterns: ["*"]
|
||||
#
|
||||
# Why both `open-pull-requests-limit: 0` AND `ignore`:
|
||||
# The official docs treat `limit: 0` as the canonical way to disable
|
||||
# version updates, but dependabot-core#7353 shows it has historically
|
||||
# been ignored for some ecosystems. Adding the wildcard `ignore` rule
|
||||
# guarantees zero scheduled version PRs even if the limit gets
|
||||
# regressed upstream. Security updates are unaffected by either knob.
|
||||
#
|
||||
# Prerequisite: "Dependabot security updates" must be enabled in
|
||||
# Settings → Code security and analysis. Without it, no CVE PRs are
|
||||
# opened regardless of this file.
|
||||
#
|
||||
# Conventions applied to `/cli`:
|
||||
# * Monthly schedule (one batch / month).
|
||||
# * Two groups so per-dep PRs never flood:
|
||||
# - `cli-deps` bundles minor + patch → ONE PR / month.
|
||||
# - `cli-deps-major` bundles semver-major bumps the same way so
|
||||
# breaking changes surface as a single
|
||||
# review-required PR rather than silently
|
||||
# accumulating.
|
||||
# * `open-pull-requests-limit: 3` as a safety net against stalled queues.
|
||||
# * `commit-message.prefix: "chore(deps)"` to match the repo's
|
||||
# Conventional Commits convention.
|
||||
version: 2
|
||||
updates:
|
||||
# ─── Go modules ───
|
||||
@@ -41,16 +51,14 @@ updates:
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 3
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
open-pull-requests-limit: 0
|
||||
ignore:
|
||||
- dependency-name: "*"
|
||||
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
|
||||
groups:
|
||||
server-deps:
|
||||
server-security:
|
||||
applies-to: security-updates
|
||||
patterns: ["*"]
|
||||
update-types: ["minor", "patch"]
|
||||
server-deps-major:
|
||||
patterns: ["*"]
|
||||
update-types: ["major"]
|
||||
|
||||
- package-ecosystem: gomod
|
||||
directory: "/cli"
|
||||
@@ -71,78 +79,66 @@ updates:
|
||||
directory: "/client"
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 3
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
open-pull-requests-limit: 0
|
||||
ignore:
|
||||
- dependency-name: "*"
|
||||
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
|
||||
groups:
|
||||
client-deps:
|
||||
client-security:
|
||||
applies-to: security-updates
|
||||
patterns: ["*"]
|
||||
update-types: ["minor", "patch"]
|
||||
client-deps-major:
|
||||
patterns: ["*"]
|
||||
update-types: ["major"]
|
||||
|
||||
# ─── npm ───
|
||||
- package-ecosystem: npm
|
||||
directory: "/frontend"
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 3
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
prefix-development: "chore(deps-dev)"
|
||||
open-pull-requests-limit: 0
|
||||
ignore:
|
||||
- dependency-name: "*"
|
||||
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
|
||||
groups:
|
||||
frontend-deps:
|
||||
frontend-security:
|
||||
applies-to: security-updates
|
||||
patterns: ["*"]
|
||||
update-types: ["minor", "patch"]
|
||||
frontend-deps-major:
|
||||
patterns: ["*"]
|
||||
update-types: ["major"]
|
||||
|
||||
- package-ecosystem: npm
|
||||
directory: "/miniprogram"
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 3
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
prefix-development: "chore(deps-dev)"
|
||||
open-pull-requests-limit: 0
|
||||
ignore:
|
||||
- dependency-name: "*"
|
||||
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
|
||||
groups:
|
||||
miniprogram-deps:
|
||||
miniprogram-security:
|
||||
applies-to: security-updates
|
||||
patterns: ["*"]
|
||||
update-types: ["minor", "patch"]
|
||||
miniprogram-deps-major:
|
||||
patterns: ["*"]
|
||||
update-types: ["major"]
|
||||
|
||||
# ─── Python ───
|
||||
- package-ecosystem: pip
|
||||
directory: "/docreader"
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 3
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
open-pull-requests-limit: 0
|
||||
ignore:
|
||||
- dependency-name: "*"
|
||||
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
|
||||
groups:
|
||||
docreader-deps:
|
||||
docreader-security:
|
||||
applies-to: security-updates
|
||||
patterns: ["*"]
|
||||
update-types: ["minor", "patch"]
|
||||
docreader-deps-major:
|
||||
patterns: ["*"]
|
||||
update-types: ["major"]
|
||||
|
||||
# ─── GitHub Actions ───
|
||||
- package-ecosystem: github-actions
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 3
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
open-pull-requests-limit: 0
|
||||
ignore:
|
||||
- dependency-name: "*"
|
||||
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
|
||||
groups:
|
||||
gha-deps:
|
||||
gha-security:
|
||||
applies-to: security-updates
|
||||
patterns: ["*"]
|
||||
update-types: ["minor", "patch"]
|
||||
gha-deps-major:
|
||||
patterns: ["*"]
|
||||
update-types: ["major"]
|
||||
|
||||
Reference in New Issue
Block a user