Skip to content

ci: validate Renovate preset + JSON on PRs - #4

Merged
cewert merged 1 commit into
mainfrom
ci/validate-renovate-preset
May 29, 2026
Merged

ci: validate Renovate preset + JSON on PRs#4
cewert merged 1 commit into
mainfrom
ci/validate-renovate-preset

Conversation

@cewert

@cewert cewert commented May 29, 2026

Copy link
Copy Markdown
Member

Why

default.json already enables org-wide patch + digest automerge ("every repo that extends this default must have PR-triggered CI that exercises the dependency surface"). But .github itself has no CI — so:

  1. Renovate patch/digest PRs in .github auto-merge with no gate, and
  2. a malformed default.json would silently break Renovate for the entire org (every repo inherits this preset).

Change

Add a check job that runs on PRs:

  • renovate-config-validator --strict renovate/default.json — catches a broken preset before it ships org-wide.
  • jq-validates every JSON file in the repo.

Verified locally: validator reports "Config validated successfully"; JSON check passes.

Follow-up

Once merged and the check context has reported once, add .github: { required_checks: ["check"] } to command-center's config/branch-protection.json and reconcile via protect.sh --apply --only .github — so .github automerge is gated like every other repo.

.github inherits the org Renovate preset's patch+digest automerge rule
but had no CI, so automerge here merged with no gate — and a malformed
default.json silently breaks Renovate for the entire org. Add a check
job that runs renovate-config-validator --strict on default.json and
jq-validates every JSON file, satisfying the preset's stated contract
that every extending repo have PR-triggered CI.
@cewert
cewert merged commit ab8d4be into main May 29, 2026
1 check passed
@cewert
cewert deleted the ci/validate-renovate-preset branch May 29, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant