Skip to content

Commit ac56d4c

Browse files
ci: add Go-scoped Renovate configuration
Raise the OpenSSF Scorecard Dependency-Update-Tool check (was 0/10) by adding a Renovate config. Renovate is already the cozystack org standard (active on ansible-cozystack, talm, boot-to-talos), so the app is authorized org-wide and this file is picked up without a new credential. Scoped deliberately so automated bumps only ever touch Go dependencies: - enabledManagers: [gomod] — Renovate ignores Dockerfiles, Helm charts, shipped component/operator versions, and GitHub Actions. Components and images stay hand-managed, per the 2026-05-27 decision. - gomodTidy + gomodUpdateImportPaths run after each bump; the gomod manager auto-discovers both the root module and the api/apps/v1alpha1 submodule. - controller-runtime and k8s.io/** are grouped so client-go and controller-runtime never bump out of lockstep. - The Go toolchain directive is pinned (matchDepTypes golang disabled): go.mod is generated and a toolchain bump needs a matching setup-go and a codegen run, out of scope for an automated PR. - automerge/platformAutomerge are off and every Renovate PR is labeled do-not-merge/hold + automated, so bumps are held until tests pass and a maintainer reviews them by hand. Validated with renovate-config-validator (config validated successfully). Signed-off-by: Myasnikov Daniil <[email protected]> Assisted-By: Claude <[email protected]>
1 parent 26574f0 commit ac56d4c

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

‎.github/renovate.json‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
":semanticCommits"
6+
],
7+
"enabledManagers": ["gomod"],
8+
"postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths"],
9+
"labels": ["automated", "do-not-merge/hold"],
10+
"automerge": false,
11+
"platformAutomerge": false,
12+
"prConcurrentLimit": 5,
13+
"packageRules": [
14+
{
15+
"description": "Keep controller-runtime and the Kubernetes libraries in lockstep. A split bump breaks compilation because a given controller-runtime release expects a matching client-go / apimachinery line.",
16+
"groupName": "kubernetes",
17+
"matchManagers": ["gomod"],
18+
"matchPackageNames": ["sigs.k8s.io/controller-runtime", "k8s.io/**"]
19+
},
20+
{
21+
"description": "Never bump the Go toolchain directive. go.mod is generated and the toolchain is pinned deliberately; raising it needs a matching setup-go and a codegen run, which is out of scope for an automated dependency bump.",
22+
"matchManagers": ["gomod"],
23+
"matchDepTypes": ["golang"],
24+
"enabled": false
25+
}
26+
]
27+
}

0 commit comments

Comments
 (0)