Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 49 additions & 40 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"baseBranchPatterns": ["main"],
"ignorePaths": ["design/**"],
"postUpdateOptions": ["gomodTidy"],
// By default renovate will auto detect whether semantic commits have been used
// By default, renovate will auto-detect whether semantic commits have been used
// in the recent history and comply with that, we explicitly disable it
"semanticCommits": "disabled",
// All PRs should have a label
"labels": ["automated"],
"labels": ["automated", "renovate"],
"customManagers": [
{
// We want a PR to bump Go versions used through env variables in any Github
Expand All @@ -23,19 +23,24 @@
"description": "Bump Go version in workflows",
"managerFilePatterns": ["/^\\.github\\/workflows\\/[^/]+\\.ya?ml$/"],
"matchStrings": [
"GO_VERSION: '(?<currentValue>.*?)'\\n"
"GO_VERSION: ['\"]?(?<currentValue>.*?)['\"]?\\n"
],
"datasourceTemplate": "golang-version",
"depNameTemplate": "golang"
"depNameTemplate": "go",
"packageNameTemplate": "go",
"depTypeTemplate": "golang"
},
{
// We want a PR to bump golangci-lint versions used through env variables in
// any Github Actions, taking it from the official Github repository tags.
"customType": "regex",
"description": "Bump golangci-lint version in workflows",
"managerFilePatterns": ["/^\\.github\\/workflows\\/[^/]+\\.ya?ml$/"],
"managerFilePatterns": ["/^\\.github\\/workflows\\/[^/]+\\.ya?ml$/", "/^Makefile$/"],
"matchStrings": [
"GOLANGCI_VERSION: '(?<currentValue>.*?)'\\n"
"GOLANGCI_VERSION: ['\"]?(?<currentValue>.*?)['\"]?\\n",
"GOLANGCILINT_VERSION: ['\"]?(?<currentValue>.*?)['\"]?\\n",
"GOLANGCILINT_VERSION \\??= (?<currentValue>.*?)\\n",
"GOLANGCI_VERSION \\??= (?<currentValue>.*?)\\n"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "golangci/golangci-lint"
Expand All @@ -47,35 +52,11 @@
"description": "Bump Docker Buildx version in workflows",
"managerFilePatterns": ["/^\\.github\\/workflows\\/[^/]+\\.ya?ml$/"],
"matchStrings": [
"DOCKER_BUILDX_VERSION: '(?<currentValue>.*?)'\\n"
"DOCKER_BUILDX_VERSION: ['\"]?(?<currentValue>.*?)['\"]?\\n"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "docker/buildx"
},
{
// We want a PR to bump golangci-lint versions used through make variables in
// the Makefile, taking it from the official Github repository releases.
"customType": "regex",
"description": "Bump golangci-lint version in the Makefile",
"managerFilePatterns": [
"/^Makefile$/",
"/^\\.github\\/workflows\\/[^/]+\\.ya?ml$/"
],
"matchStrings": ["GOLANGCILINT_VERSION \\??= (?<currentValue>.*?)\\n"],
"datasourceTemplate": "github-releases",
"depNameTemplate": "golangci/golangci-lint",
"extractVersionTemplate": "^(?<version>.*)$"
},
{
// We want a PR to bump up CLI versions used through make variables in
// the Makefile, taking it from the official Github repository releases.
"customType": "regex",
"description": "Bump up CLI version in the Makefile",
"managerFilePatterns": ["/^Makefile$/"],
"matchStrings": ["UP_VERSION \\??= (?<currentValue>.*?)\\n"],
"datasourceTemplate": "github-releases",
"depNameTemplate": "upbound/up"
},
{
// We want a PR to bump uptest versions used through make variables in
// the Makefile, taking it from the official Github repository releases.
Expand Down Expand Up @@ -104,16 +85,15 @@
"managerFilePatterns": ["/^Makefile$/"],
"matchStrings": ["CROSSPLANE_VERSION \\??= (?<currentValue>.*?)\\n"],
"datasourceTemplate": "github-releases",
"depNameTemplate": "crossplane/crossplane",
"extractVersionTemplate": "^(?<version>.*)$"
"depNameTemplate": "crossplane/crossplane"
},
{
// We want a PR to bump Crossplane CLI versions used through make variables in
// the Makefile, taking it from the official Github repository releases.
"customType": "regex",
"description": "Bump Crossplane CLI version in the Makefile",
"managerFilePatterns": ["/^Makefile$/"],
"matchStrings": ["CROSSPLANE_CLI_VERSION ??= (?<currentValue>.*?)\\n"],
"matchStrings": ["CROSSPLANE_CLI_VERSION \\??= (?<currentValue>.*?)\\n"],
"datasourceTemplate": "github-releases",
"depNameTemplate": "crossplane/crossplane"
}
Expand All @@ -130,7 +110,7 @@
},
{
// We want a single PR for all the patches bumps of kubernetes related
// dependencies, as most of the times these are all strictly related.
// dependencies, as most of the time these are all strictly related.
"matchDatasources": ["go"],
"groupName": "kubernetes patches",
"matchUpdateTypes": ["patch", "digest"],
Expand All @@ -141,13 +121,22 @@
// dependencies.
"matchDatasources": ["go"],
"matchUpdateTypes": ["major", "minor"],
"matchPackageNames": ["k8s.io{/,}**", "sigs.k8s.io{/,}**"]
"matchPackageNames": ["k8s.io{/,}**", "sigs.k8s.io{/,}**"],
"dependencyDashboardApproval": true,
},
{
// We want dedicated PRs for each minor and major bumps to crossplane related
// go dependencies.
"matchDatasources": ["go"],
"matchUpdateTypes": ["major", "minor"],
"matchPackageNames": ["github.com/crossplane{/,}**"],
"dependencyDashboardApproval": true,
},
{
// We want dedicated PRs for each bump to non-kubernetes Go dependencies, but
// only if there are known vulnerabilities in the current version.
"matchDatasources": ["go"],
"matchPackageNames": ["*", "!k8s.io{/,}**", "!sigs.k8s.io{/,}**"],
"matchPackageNames": ["*", "!k8s.io{/,}**", "!sigs.k8s.io{/,}**", "!github.com/crossplane{/,}**"],
"enabled": false,
"matchUpdateTypes": ["major"]
},
Expand All @@ -156,7 +145,7 @@
// dependencies, but only if there are known vulnerabilities in the current
// version.
"matchDatasources": ["go"],
"matchPackageNames": ["*", "!k8s.io{/,}**", "!sigs.k8s.io{/,}**"],
"matchPackageNames": ["*", "!k8s.io{/,}**", "!sigs.k8s.io{/,}**", "!github.com/crossplane{/,}**"],
"enabled": false,
"matchUpdateTypes": ["minor", "patch", "digest"],
"groupName": "all non-major go dependencies"
Expand All @@ -180,10 +169,30 @@
"groupName": "golangci-lint versions in CI",
"groupSlug": "golangci-lint-in-ci"
},
{
// Allow bumping the go version directive at go.mod
"matchDatasources": ["golang-version"],
"matchManagers": ["gomod"],
"matchDepNames": ["go"],
"matchDepTypes": ["golang"],
"rangeStrategy": "bump",
},
{
// Single PR for bumping Go version at the CI env vars and go.mod
"matchDatasources": ["golang-version"],
"matchPackageNames": ["go"],
"matchManagers": ["gomod", "custom.regex"],
"matchDepNames": ["go"],
"matchDepTypes": ["golang"],
"separateMinorPatch": true,
"groupName": "golang versions",
"groupSlug": "golang-versions",
"enabled": true
},
{
// We want dedicated PRs for each major bump to Github Actions
"matchDepTypes": ["action"],
"pinDigests": true
}
]
}
],
}
Loading