Files
yawan f7fc992f57
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-weknora) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-weknora) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-weknora) / End-to-end inside dsh (latest, advisory) (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Build & Publish (dsh-weknora) / Publish to npm (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
WeKnora deployment source with the reviewed wiki identity, summary and recovery fixes
2026-09-22 16:19:06 +08:00

145 lines
5.0 KiB
YAML

# Dependabot configuration for the WeKnora repository.
#
# 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.
#
# Security-only pattern (mirrors fluent/fluentd-kubernetes-daemonset and
# the dependabot docs for "Disabling Dependabot version updates"):
#
# 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 ───
- package-ecosystem: gomod
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 0
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
groups:
server-security:
applies-to: security-updates
patterns: ["*"]
- package-ecosystem: gomod
directory: "/cli"
schedule:
interval: monthly
open-pull-requests-limit: 3
commit-message:
prefix: "chore(deps)"
groups:
cli-deps:
patterns: ["*"]
update-types: ["minor", "patch"]
cli-deps-major:
patterns: ["*"]
update-types: ["major"]
- package-ecosystem: gomod
directory: "/client"
schedule:
interval: monthly
open-pull-requests-limit: 0
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
groups:
client-security:
applies-to: security-updates
patterns: ["*"]
# ─── npm ───
- package-ecosystem: npm
directory: "/frontend"
schedule:
interval: monthly
open-pull-requests-limit: 0
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
groups:
frontend-security:
applies-to: security-updates
patterns: ["*"]
- package-ecosystem: npm
directory: "/miniprogram"
schedule:
interval: monthly
open-pull-requests-limit: 0
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
groups:
miniprogram-security:
applies-to: security-updates
patterns: ["*"]
# ─── Python ───
- package-ecosystem: pip
directory: "/docreader"
schedule:
interval: monthly
open-pull-requests-limit: 0
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
groups:
docreader-security:
applies-to: security-updates
patterns: ["*"]
# ─── GitHub Actions ───
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 0
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
groups:
gha-security:
applies-to: security-updates
patterns: ["*"]