Skip to content

Add Dependabot config with monthly grouped updates - #855

Draft
janhoy wants to merge 3 commits into
apache:mainfrom
janhoy:dependabot-config
Draft

janhoy wants to merge 3 commits into
apache:mainfrom
janhoy:dependabot-config

Conversation

@janhoy

@janhoy janhoy commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

In our other repos we do monthly dependabot updates. This PR proposes the same for operator.

Configure Dependabot version updates for GitHub Actions and Go modules on a monthly schedule with a 7 day cooldown. Updates are grouped (one group for all actions; kubernetes/helm, cert-manager, testing, golang-x and a catch-all for Go) so that a month of bumps arrives as a handful of PRs. Security updates for Go are grouped as well. zookeeper-operator is ignored since its version is pinned across Makefile, Helm chart and docs.

…cense list

Configure Dependabot version updates for GitHub Actions and Go modules on a
monthly schedule with a 7 day cooldown. Updates are grouped (one group for
all actions; kubernetes/helm, cert-manager, testing, golang-x and a catch-all
for Go) so that a month of bumps arrives as a handful of PRs. Security
updates for Go are grouped as well. zookeeper-operator is ignored since its
version is pinned across Makefile, Helm chart and docs.

Add a workflow that regenerates dependency_licenses.csv on Dependabot PRs,
commits it to the PR branch and re-dispatches the regular PR checks, so the
PRs become mergeable without manual intervention. check.yaml and
smoke-tests.yaml gain a workflow_dispatch trigger for that purpose.
@janhoy
janhoy requested a balanced review from Copilot October 23, 2026 09:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

4 open issues
What changed in this PR

Adds Dependabot automation and supporting workflows so dependency update PRs are fewer, grouped, and become mergeable without manual regeneration of dependency_licenses.csv.

Changes:

  • Add .github/dependabot.yml to group monthly GitHub Actions + Go module updates (including security updates) and ignore a pinned dependency.
  • Add a dependabot-licenses workflow to regenerate dependency_licenses.csv, commit it back to Dependabot PR branches, and re-trigger CI.
  • Enable workflow_dispatch for existing check and smoke-tests workflows so they can be re-run after the fix-up push.
File Description
.github/​workflows/​smoke-tests.yaml Allows manual dispatch so CI can be re-triggered after the license list fix-up commit.
.github/​workflows/​dependabot-licenses.yaml New automation to regenerate and commit dependency_licenses.csv for Dependabot PRs and re-run checks.
.github/​workflows/​check.yaml Allows manual dispatch so CI can be re-triggered after the license list fix-up commit.
.github/​dependabot.yml New Dependabot config for monthly grouped updates across GitHub Actions and Go modules.

Review effort: Lite

Comment thread .github/dependabot.yml
Comment thread .github/dependabot.yml
Comment thread .github/workflows/dependabot-licenses.yaml Outdated
Comment thread .github/workflows/dependabot-licenses.yaml Outdated
…ment cooldown

- Check out the PR head SHA instead of the branch ref so the fix-up commit
  is always based on the commit the event was about. A non-forced push to
  the branch is rejected if the branch moved meanwhile, and the concurrency
  group cancels the stale run so a fresh run takes over.
- Document that cooldown only applies to version updates and link to the
  cooldown section of the Dependabot options reference.
@janhoy
janhoy requested a review from HoustonPutman October 23, 2026 19:16
Comment thread .github/workflows/dependabot-licenses.yaml Outdated
The workflow regenerated dependency_licenses.csv on every Dependabot Go bump and
pushed a fix-up commit. In practice most bumps do not need it: of the four open
Dependabot PRs, only apache#845 fails "make check-licenses", and only because a
transitive dependency's license URL moved (golang.org/x/sync v0.21.0 -> v0.22.0).

Regenerating the list by hand on the PRs that actually need it is simpler than
carrying a workflow that pushes commits to PR branches and re-dispatches checks.
This leaves the PR as just the Dependabot configuration.

Also reverts the workflow_dispatch triggers added to check.yaml and
smoke-tests.yaml, which existed only so the removed workflow could re-run the
checks after its fix-up push, and replaces the comment in dependabot.yml that
referred to the workflow with a note on the manual step.
@janhoy
janhoy requested a review from epugh October 24, 2026 15:23
@janhoy
janhoy marked this pull request as draft October 24, 2026 18:48

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants