Skip to content

Chore(ci): group dependabot updates and add a cooldown - #163

Open
briankane wants to merge 1 commit into
kubevela:mainfrom
briankane:chore/dependabot-config
Open

briankane wants to merge 1 commit into
kubevela:mainfrom
briankane:chore/dependabot-config

Conversation

@briankane

@briankane briankane commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Description of your changes

This repo has no Dependabot config, so the only updates it got were security bumps, one PR per dependency. Six of those sat open from 2024 until they were closed this week, all long superseded by main.

Adds .github/dependabot.yml, the same as kubevela/kubevela#7653 and kubevela/workflow#338:

Setting Go modules GitHub Actions
Minor and patch updates one grouped weekly PR (go-minor-patch) one grouped weekly PR (actions-minor-patch)
Major updates one PR each one PR each
cooldown 7 days after a release 7 days after a release
open-pull-requests-limit 5 5
k8s.io/* ignored (bumped with controller-runtime)

The cooldown means a version has to be out for a week before Dependabot proposes it, so a bad or compromised release has time to be pulled first.

How has this code been tested

  • The YAML parses, with both ecosystems and their groups.
  • Keys checked against the Dependabot options reference. Any config error shows on the repo's Dependabot page after merge.

Summary by cubic

Adds Dependabot configuration to group weekly Go module and GitHub Actions minor and patch updates, while delaying proposals until releases are at least seven days old.

  • Major updates remain separate PRs, and k8s.io/* modules are left for manual updates with controller-runtime.
  • Each ecosystem is limited to five open update PRs.

Written for commit e2806b5. Summary will update on new commits.

View guided diff

Weekly gomod and github-actions updates, minor and patch grouped into one PR
per ecosystem, a 7-day cooldown before a release is proposed, and k8s.io
modules left to move with controller-runtime by hand.

Signed-off-by: Brian Kane <briankane1@gmail.com>
@briankane briankane added type/ci CI/CD workflow or pipeline changes area/ci GitHub Actions, releases and backports labels Nov 21, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/dependabot.yml">

<violation number="1" location=".github/dependabot.yml:20">
P2: `sigs.k8s.io/controller-runtime` is not covered by the `k8s.io/*` ignore, so Dependabot will still open minor/patch bump PRs for it. Its k8s.io dependencies would then move through the grouped PR while the ignore blocks them directly. If controller-runtime is meant to be bumped by hand, ignore it too.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread .github/dependabot.yml
include: "scope"
# k8s.io modules move together with controller-runtime, which is bumped by hand.
ignore:
- dependency-name: k8s.io/*

@cubic-dev-ai cubic-dev-ai Bot Nov 21, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: sigs.k8s.io/controller-runtime is not covered by the k8s.io/* ignore, so Dependabot will still open minor/patch bump PRs for it. Its k8s.io dependencies would then move through the grouped PR while the ignore blocks them directly. If controller-runtime is meant to be bumped by hand, ignore it too.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .github/dependabot.yml, line 20:

<comment>`sigs.k8s.io/controller-runtime` is not covered by the `k8s.io/*` ignore, so Dependabot will still open minor/patch bump PRs for it. Its k8s.io dependencies would then move through the grouped PR while the ignore blocks them directly. If controller-runtime is meant to be bumped by hand, ignore it too.</comment>

<file context>
@@ -0,0 +1,42 @@
+      include: "scope"
+    # k8s.io modules move together with controller-runtime, which is bumped by hand.
+    ignore:
+      - dependency-name: k8s.io/*
+    groups:
+      # Minor and patch updates arrive as one weekly PR; each major stays on its own.
</file context>
Suggested change
- dependency-name: k8s.io/*
- dependency-name: k8s.io/*
- dependency-name: sigs.k8s.io/controller-runtime
Fix with cubic

@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.54%. Comparing base (ff99f28) to head (e2806b5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #163      +/-   ##
==========================================
- Coverage   92.55%   92.54%   -0.02%     
==========================================
  Files         115      115              
  Lines        6944     6944              
==========================================
- Hits         6427     6426       -1     
- Misses        517      518       +1     
Flag Coverage Δ
unit-test 92.54% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci GitHub Actions, releases and backports type/ci CI/CD workflow or pipeline changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant