Skip to content

Commit b7019d4

Browse files
ci: add renovate config (#98)
* ci: add renovate config * ci: add renovate config validation workflow
1 parent 26d5468 commit b7019d4

2 files changed

Lines changed: 74 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Caller workflow for the reusable validate-renovate workflow in loft-sh/github-actions.
2+
name: Validate Renovate Config
3+
4+
on:
5+
pull_request:
6+
paths:
7+
- 'renovate.json'
8+
- 'renovate.json5'
9+
- '.renovaterc'
10+
- '.renovaterc.json'
11+
12+
permissions: {}
13+
14+
jobs:
15+
validate-renovate:
16+
permissions:
17+
contents: read
18+
pull-requests: read
19+
uses: loft-sh/github-actions/.github/workflows/validate-renovate.yaml@b52efbd927586ea78282073f79d2423e552c9f62 # validate-renovate/v1

renovate.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
":semanticCommits",
6+
"helpers:pinGitHubActionDigests"
7+
],
8+
"baseBranchPatterns": ["main"],
9+
"labels": ["dependencies"],
10+
"prHourlyLimit": 5,
11+
"prConcurrentLimit": 10,
12+
"minimumReleaseAge": "3 days",
13+
"schedule": ["before 6am on monday"],
14+
"vulnerabilityAlerts": {
15+
"enabled": true,
16+
"labels": ["security"]
17+
},
18+
"postUpdateOptions": ["gomodTidy"],
19+
"packageRules": [
20+
{
21+
"description": "Group GitHub Actions updates",
22+
"matchManagers": ["github-actions"],
23+
"groupName": "github-actions"
24+
},
25+
{
26+
"description": "Group Go patch updates to reduce PR noise; majors and minors stay individual for review",
27+
"matchManagers": ["gomod"],
28+
"matchUpdateTypes": ["patch"],
29+
"groupName": "go-patch-updates"
30+
},
31+
{
32+
"description": "Group Kubernetes Go modules so the k8s.io/sigs.k8s.io ecosystem moves in lockstep (covers go.mod deps and the pinned code-generator/kube-openapi tools in the Justfile)",
33+
"matchPackageNames": ["k8s.io/{/,}**", "sigs.k8s.io/{/,}**"],
34+
"groupName": "k8s-go-deps"
35+
}
36+
],
37+
"customManagers": [
38+
{
39+
"customType": "regex",
40+
"description": "deepcopy-gen (k8s.io/code-generator) tool version in the Justfile gen recipe",
41+
"managerFilePatterns": ["/^Justfile$/"],
42+
"matchStrings": ["go run k8s\\.io/code-generator/cmd/deepcopy-gen@(?<currentValue>v[\\d.]+)"],
43+
"depNameTemplate": "k8s.io/code-generator",
44+
"datasourceTemplate": "go"
45+
},
46+
{
47+
"customType": "regex",
48+
"description": "openapi-gen (k8s.io/kube-openapi) tool version in the Justfile gen recipe",
49+
"managerFilePatterns": ["/^Justfile$/"],
50+
"matchStrings": ["go run k8s\\.io/kube-openapi/cmd/openapi-gen@(?<currentValue>v[\\d.]+-[\\d]+-[0-9a-f]+)"],
51+
"depNameTemplate": "k8s.io/kube-openapi",
52+
"datasourceTemplate": "go"
53+
}
54+
]
55+
}

0 commit comments

Comments
 (0)