Skip to content

Commit

Permalink
github: Enable dependabot for stable branch
Browse files Browse the repository at this point in the history
Hubble CLI currently maintains support for the last stable branch. To
ensure security-relevant dependencies are updated, this commit
introduces dependabot for the current (v0.11) stable branch with the
following configuration:

  - gomod dependencies are only updated if there is a security
    vulnerability in one of our dependencies.
  - docker dependencies (i.e. the alpine base image) are only update
    to the next patch version
  - github actions are always updated (this mirrors cilium/cilium's
    configuration)

The goal of this configuration is to ensure we pull in security relevant
updates, while keeping the moving parts as low as possible in the stable
branch.

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
  • Loading branch information
gandro committed Jan 16, 2023
1 parent 8d82e24 commit d9b8daa
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@ updates:
- kind/enhancement
- release-note/misc
- priority/release-blocker
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
commit-message:
prefix: "vendor:"
# Setting open-pull-requests-limit to 0 means that dependabot will not
# update regular dependencies on this target branch, but still provide
# security updates for our gomod dependencies
open-pull-requests-limit: 0
target-branch: "v0.11"
rebase-strategy: disabled
ignore:
- dependency-name: "github.com/cilium/cilium"
labels:
- kind/enhancement
- release-note/misc
- priority/release-blocker

- package-ecosystem: github-actions
directory: /
schedule:
Expand All @@ -26,6 +45,20 @@ updates:
- kind/enhancement
- release-note/misc
- priority/release-blocker
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
commit-message:
prefix: "ci:"
open-pull-requests-limit: 5
rebase-strategy: disabled
target-branch: "v0.11"
labels:
- kind/enhancement
- release-note/misc
- priority/release-blocker

- package-ecosystem: docker
directory: /
schedule:
Expand All @@ -38,3 +71,20 @@ updates:
- kind/enhancement
- release-note/misc
- priority/release-blocker
- package-ecosystem: docker
directory: /
schedule:
interval: daily
commit-message:
prefix: "dockerfile:"
open-pull-requests-limit: 5
rebase-strategy: disabled
target-branch: "v0.11"
ignore:
# Only bump the patch version in stable branches
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
labels:
- kind/enhancement
- release-note/misc
- priority/release-blocker
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ After `v$MAJOR.$MINOR.$PATCH` is released, the next commit should restore the
`v$MAJOR.$MINOR` branch to the `v$MAJOR.$MINOR.{$PATCH+1}-dev` to separate
unreleased hubble versions in a branch from releases.

## Update the `dependabot` configuration

After a new stable `v$MAJOR.$MINOR` release branch has been created, update
the `.github/dependabot.yml` field for `target-branch` to point to the newly
created branch, instead of the old stable branch.

## Announce the release on Slack

Post a release announcement message in the [Cilium Slack #hubble
Expand Down

0 comments on commit d9b8daa

Please sign in to comment.