Skip to content
Merged
Show file tree
Hide file tree
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
44 changes: 44 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
// This configures Konflux Renovate bot a.k.a. MintMaker, the thing that keeps our pipelines use up-to-date tasks.
// Initial reference:
// https://github.com/stackrox/collector/blob/2cc1dcd5ed9000459a6102e17fac132a65677c8e/.github/renovate.json5

"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
// This tells Renovate to combine all updates in one PR so that we have fewer PRs to deal with.
"group:all",
],
// The number of PRs that can be open against the repo.
"prConcurrentLimit": 10,
// The number of PRs that can be open against one branch.
"branchConcurrentLimit": 5,
// The number of PRs MintMaker can open in one hour, effectively in one run.
"prHourlyLimit": 5,
"timezone": "Etc/UTC",
"schedule": [
// Allowed syntax: https://docs.renovatebot.com/configuration-options/#schedule
// Between 3a.m. and 7a.m. every day, outside business hours across EU and US timezones.
"* 3-7 * * *",
],
// Tell Renovate not to update PRs when outside schedule.
"updateNotScheduled": false,
"enabledManagers": [
// Restrict Renovate focus on Konflux things since we rely on GitHub's Dependabot for Go module updates.
// - dockerfile: keeps base image digests up-to-date using Konflux image pull secrets
// - gomod: intentionally omitted (handled by Dependabot)
// - tekton: keeps Konflux pipeline tasks up-to-date (MintMaker-specific knowledge, Dependabot cannot do this)
"dockerfile",
"tekton",
],
"dockerfile": {
"includePaths": [
"konflux.Dockerfile",
],
},
"tekton": {
"schedule": [
// Duplicate the schedule here because Konflux global config may have a special override for tekton.
"* 3-7 * * *",
],
},
}
3 changes: 3 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
with:
dockerfile: konflux.Dockerfile

- name: Run renovate check
run: make renovate-validate

- name: Create ../results directory for SARIF report files
shell: bash
run: mkdir -p ../results
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ shell-lint: ## Run shellcheck on shell scripts
@echo "Running shellcheck..."
@shellcheck scripts/*.sh e2e-tests/scripts/*.sh

.PHONY: renovate-validate
renovate-validate: ## Validate .github/renovate.json5 configuration
$(DOCKER_CMD) run --rm -it --entrypoint=renovate-config-validator -v "$(shell pwd)/.github":/mnt_github -w /mnt_github renovate/renovate --strict

.PHONY: actionlint
actionlint: ## Run actionlint on GitHub Actions workflows
@echo "Running actionlint..."
Expand Down
Loading