Skip to content

Commit 25afd0c

Browse files
authored
chore(Konflux): Add renovate config (#83)
1 parent 763ef72 commit 25afd0c

3 files changed

Lines changed: 51 additions & 0 deletions

File tree

.github/renovate.json5

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
// This configures Konflux Renovate bot a.k.a. MintMaker, the thing that keeps our pipelines use up-to-date tasks.
3+
// Initial reference:
4+
// https://github.com/stackrox/collector/blob/2cc1dcd5ed9000459a6102e17fac132a65677c8e/.github/renovate.json5
5+
6+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
7+
"extends": [
8+
// This tells Renovate to combine all updates in one PR so that we have fewer PRs to deal with.
9+
"group:all",
10+
],
11+
// The number of PRs that can be open against the repo.
12+
"prConcurrentLimit": 10,
13+
// The number of PRs that can be open against one branch.
14+
"branchConcurrentLimit": 5,
15+
// The number of PRs MintMaker can open in one hour, effectively in one run.
16+
"prHourlyLimit": 5,
17+
"timezone": "Etc/UTC",
18+
"schedule": [
19+
// Allowed syntax: https://docs.renovatebot.com/configuration-options/#schedule
20+
// Between 3a.m. and 7a.m. every day, outside business hours across EU and US timezones.
21+
"* 3-7 * * *",
22+
],
23+
// Tell Renovate not to update PRs when outside schedule.
24+
"updateNotScheduled": false,
25+
"enabledManagers": [
26+
// Restrict Renovate focus on Konflux things since we rely on GitHub's Dependabot for Go module updates.
27+
// - dockerfile: keeps base image digests up-to-date using Konflux image pull secrets
28+
// - gomod: intentionally omitted (handled by Dependabot)
29+
// - tekton: keeps Konflux pipeline tasks up-to-date (MintMaker-specific knowledge, Dependabot cannot do this)
30+
"dockerfile",
31+
"tekton",
32+
],
33+
"dockerfile": {
34+
"includePaths": [
35+
"konflux.Dockerfile",
36+
],
37+
},
38+
"tekton": {
39+
"schedule": [
40+
// Duplicate the schedule here because Konflux global config may have a special override for tekton.
41+
"* 3-7 * * *",
42+
],
43+
},
44+
}

.github/workflows/style.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
with:
4343
dockerfile: konflux.Dockerfile
4444

45+
- name: Run renovate check
46+
run: make renovate-validate
47+
4548
- name: Create ../results directory for SARIF report files
4649
shell: bash
4750
run: mkdir -p ../results

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ shell-lint: ## Run shellcheck on shell scripts
106106
@echo "Running shellcheck..."
107107
@shellcheck scripts/*.sh e2e-tests/scripts/*.sh
108108

109+
.PHONY: renovate-validate
110+
renovate-validate: ## Validate .github/renovate.json5 configuration
111+
$(DOCKER_CMD) run --rm -it --entrypoint=renovate-config-validator -v "$(shell pwd)/.github":/mnt_github -w /mnt_github renovate/renovate --strict
112+
109113
.PHONY: actionlint
110114
actionlint: ## Run actionlint on GitHub Actions workflows
111115
@echo "Running actionlint..."

0 commit comments

Comments
 (0)