From 2bd48cd05c75eb03617a993b1e6a6f4cf9ace51a Mon Sep 17 00:00:00 2001 From: gauron99 Date: Thu, 12 Nov 2026 00:52:59 +0100 Subject: [PATCH] ci: let Dependabot update dependencies Dependabot now updates poetry.lock and the actions the workflows use. A version update waits until the release is 7 days old, so a bad or compromised release has time to be pulled or flagged first. Security updates come at once. Each pull request is assigned to gauron99 and merges the usual way, with /lgtm and /approve. Patch and minor updates come in one grouped pull request, a major update in its own. Merging without review (the skip-review label that Prow tide accepts from dependabot[bot]) can come later. Version updates cover packages that only others depend on (allow: dependency-type all), as Dependabot skips them by default and most of poetry.lock is such, among it the packages with open CVEs. pyproject.toml keeps its ranges, as func-python is a library: a release inside a range only moves poetry.lock, one outside it raises the range. Dependabot leaves knative/actions alone, since knobots syncs the knative-*.yaml workflows that use it. --- .github/dependabot.yml | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..889e75eb --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,44 @@ +# Dependabot proposes a release only once it is 7 days old, so a bad or +# compromised release has time to be pulled or flagged first. Security +# updates skip the wait. +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" + assignees: + - "gauron99" + cooldown: + default-days: 7 + allow: + - dependency-type: "all" + # A release inside a range in pyproject.toml only moves poetry.lock. + # A release outside it raises the range. + versioning-strategy: "increase-if-necessary" + groups: + # Security updates: one pull request for all patch and minor fixes. + pip-security: + applies-to: security-updates + patterns: ["*"] + update-types: ["minor", "patch"] + # Version updates: one pull request for all patch and minor bumps. + pip: + patterns: ["*"] + update-types: ["minor", "patch"] + + # Actions used in the workflows. + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + assignees: + - "gauron99" + cooldown: + default-days: 7 + ignore: + - dependency-name: "knative/actions/*" + groups: + github-actions: + patterns: ["*"] + update-types: ["minor", "patch"]