From 9e02e45305b05b54e5fd82eee2bfe061677d9a67 Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Mon, 30 Nov 2026 17:55:46 +0100 Subject: [PATCH] ci: Add Dependabot config on main for main and 5.x.x Dependabot only reads its config from the default branch, so the dependabot.yml added to 5.x.x in #1404 has no effect. Add the config on main instead and use target-branch to cover both main and 5.x.x. 5.x.x still ships Java 8 artifacts, so it only gets minor and patch updates there. Major updates like Spring Boot 3 or Spring 6 would need Java 17. --- .github/dependabot.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000000..75c4c44e3ee --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,40 @@ +version: 2 +updates: + # main + - package-ecosystem: "maven" + directory: "/" + target-branch: "main" + schedule: + interval: "cron" + cronjob: "0 6 * * 1,4" # Mondays and Thursdays at 06:00 UTC + open-pull-requests-limit: 10 + + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "main" + schedule: + interval: "cron" + cronjob: "0 6 * * 1,4" # Mondays and Thursdays at 06:00 UTC + open-pull-requests-limit: 10 + + # 5.x.x is in maintenance and still ships Java 8 artifacts, so only + # minor and patch updates. Major updates (e.g. Spring Boot 3, Spring 6) + # would need Java 17. + - package-ecosystem: "maven" + directory: "/" + target-branch: "5.x.x" + schedule: + interval: "cron" + cronjob: "0 6 * * 1,4" # Mondays and Thursdays at 06:00 UTC + open-pull-requests-limit: 10 + ignore: + - dependency-name: "*" + update-types: ["version-update:semver-major"] + + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "5.x.x" + schedule: + interval: "cron" + cronjob: "0 6 * * 1,4" # Mondays and Thursdays at 06:00 UTC + open-pull-requests-limit: 10