Skip to content

Commit

Permalink
Configure dependabot to keep dependencies updated (#6906)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
g-gaston authored Oct 26, 2023
1 parent 171f3f5 commit 36a789f
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 36a789f

Please sign in to comment.