← Back to Pull requests

Validate renovate.json in CI #554

Closed
unknown closed this pull request without merging on Nov 04, 2026 14:10 UTC
View on GitHub
unknown unknown commented on Nov 01, 2026 18:30 UTC
Author

Summary

This PR adds a workflow, .github/workflows/renovate-config.yaml, that checks renovate.json with Renovate's own renovate-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.

  • When it runs: on pull requests to main, and pushes to main, that change renovate.json or the workflow file. Other PRs don't run it. The workflow has contents: read permission only.

  • How it runs: the validator comes from the official ghcr.io/renovatebot/renovate image, pinned by tag and digest. It's referenced as a docker:// step rather than a docker run command, so Renovate's github-actions manager keeps the image current alongside the other pinned actions. actions/checkout uses the same pinned commit as build.yaml.

  • Flags: --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-global

    Renovate 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 example allowedCommands, 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-global is passed. In that mode, global-only options pass validation even though a repository config isn't allowed to set them. --no-global validates the file as a repository config, which rejects those options. Claude confirmed this with a copy of our renovate.json with allowedCommands added: 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."

    --strict makes 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.json on main validates as repo config, and so does the one in #553.

  • A renovate.json with a misspelled option (groupNam) fails with exit code 1 and names the option.

  • The allowedCommands case above.
  • actionlint reports 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

    Diff: 379 lines (+284 / -95) across 4 files Reviewer: kpalang Review duration: 4060m
    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
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.9% (MEDIUM) · Higher = larger blast radius
    42.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.0% · Safe to merge
    17.0%