From 36a789f952ec956297b3c100719a45db5075b1bd Mon Sep 17 00:00:00 2001 From: Guillermo Gaston Date: Thu, 26 Oct 2023 17:18:20 -0500 Subject: [PATCH] Configure dependabot to keep dependencies updated (#6906) This configures dependabot to create PRs to update our dependencies even if there are not known vulnerabilities. It should facilitate to keep everything updated and not run into situations where we need to update everything at once, so we have more time to react. --- .github/dependabot.yaml | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 000000000000..8bdd9a71b674 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,52 @@ +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: +# GitHub Actions +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + labels: + - "dependabot" + - "ok-to-test" +# Main Go module +- package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + ## group all dependencies with a k8s.io prefix into a single PR. + groups: + kubernetes: + patterns: [ "k8s.io/*" ] + ignore: + # Ignore controller-runtime as its upgraded manually. + - dependency-name: "sigs.k8s.io/controller-runtime" + update-types: [ "version-update:semver-major", "version-update:semver-minor" ] + # Ignore k8s and its transitives modules as they are upgraded manually together with controller-runtime. + - dependency-name: "k8s.io/*" + update-types: [ "version-update:semver-major", "version-update:semver-minor" ] + labels: + - "dependabot" + - "ok-to-test" +# Release Go module +- package-ecosystem: "gomod" + directory: "/release" + schedule: + interval: "weekly" + day: "tuesday" + ## group all dependencies with a k8s.io prefix into a single PR. + groups: + kubernetes: + patterns: [ "k8s.io/*" ] + ignore: + # Ignore controller-runtime as its upgraded manually. + - dependency-name: "sigs.k8s.io/controller-runtime" + update-types: [ "version-update:semver-major", "version-update:semver-minor" ] + # Ignore k8s and its transitives modules as they are upgraded manually together with controller-runtime. + - dependency-name: "k8s.io/*" + update-types: [ "version-update:semver-major", "version-update:semver-minor" ] + labels: + - "dependabot" + - "ok-to-test"