Validate renovate.json in CI #554
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 379 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.355
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #554"
general
weight: 0.35
kpalang
Summary
This PR adds a workflow,
.github/workflows/renovate-config.yaml, that checksrenovate.jsonwith Renovate's ownrenovate-config-validator. Today a mistake in the config only shows up the next time Renovate runs on the repository, when it stops opening PRs or reports a config error. With this workflow, the PR that introduces the mistake gets a failing check.main, and pushes tomain, that changerenovate.jsonor the workflow file. Other PRs don't run it. The workflow hascontents: readpermission only.ghcr.io/renovatebot/renovateimage, pinned by tag and digest. It's referenced as adocker://step rather than adocker runcommand, so Renovate'sgithub-actionsmanager keeps the image current alongside the other pinned actions.actions/checkoutuses the same pinned commit asbuild.yaml.--strict --no-global renovate.json.The check isn't meant to be required for merging. Like the main build, it relies on reviewers seeing the red X.
Why
--no-globalRenovate has two kinds of configuration. A repository config (our
renovate.json) is read from the repository being updated. A global config is set by whoever runs a self-hosted Renovate instance. Some options are only allowed in global config, for exampleallowedCommands, which controls which shell commands Renovate may run after an upgrade.When the validator is given file names, it treats them as global config unless
--no-globalis passed. In that mode, global-only options pass validation even though a repository config isn't allowed to set them.--no-globalvalidates the file as a repository config, which rejects those options. Claude confirmed this with a copy of ourrenovate.jsonwithallowedCommandsadded: it passes without the flag, and with the flag it fails with "The "allowedCommands" option is a global option reserved only for Renovate's global configuration and cannot be configured within a repository's config file."--strictmakes the job fail on warnings and on options that need migration, not only on errors.The workflow file has a comment explaining both flags.
Trade-off
Renovate publishes releases very often, so the pinned image will get an update PR every month under our monthly schedule, and new major versions need approval on the dependency dashboard.
Testing
Claude checked, running the validator from the pinned image with the same arguments as the workflow and the repository mounted read-only:
renovate.jsononmainvalidates as repo config, and so does the one in #553.renovate.jsonwith a misspelled option (groupNam) fails with exit code 1 and names the option.allowedCommandscase above.actionlintreports no problems in the workflow.Not tested: the workflow itself on GitHub. It will run on this PR, since the PR changes the workflow file.
---
🤖 Drafted with Claude Code