Baseline Renovate Setup for a Multi-Language Repo

Turning on Renovate with the defaults is how you end up with forty open pull requests and a team that has quietly muted the bot. The point is not to get updates; it is to get updates you can actually merge.

Dependency updates are the least glamorous and most reliably deferred piece of change governance. On a repo that mixes npm, pip and Docker, doing it by hand is a part-time job nobody has, and doing it badly means a security advisory sits unactioned because it was buried under thirty cosmetic bumps. Renovate fixes the mechanics, but only if you configure it as a governance tool rather than a firehose. Here is the renovate.json I put on a multi-language repo, and the reasoning behind each line.

Who this is for

  • The engineer or tech lead who owns a repo with a Node front end, a Python service and a Dockerfile or two, and updates them by hand when something breaks.
  • A CTO who wants dependency currency to be evidenced and routine rather than a heroic quarterly scramble before an audit or due-diligence request.
  • Anyone who switched Renovate on, got buried, and switched it off.

One config file, three ecosystems

Renovate detects managers by the files it finds: package.json and its lockfile, requirements.txt or pyproject.toml, and Dockerfile or docker-compose.yml. You do not enable each language; you constrain the behaviour you do not want. The whole configuration lives in one renovate.json at the repo root. This is the baseline I start from.

Free · 4 minutes

Is your engineering team shipping safely, or quietly accumulating risk?

Fourteen questions on how work gets from idea to production — cadence, testing, rollback, and the key-person risk in your delivery. Banded finding on screen, full sheet by email.

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:recommended"],
  "timezone": "Europe/London",
  "schedule": ["after 9pm on monday", "before 6am on tuesday"],
  "prHourlyLimit": 2,
  "prConcurrentLimit": 10,
  "rangeStrategy": "bump",
  "lockFileMaintenance": {
    "enabled": true,
    "schedule": ["before 6am on the first day of the month"]
  },
  "packageRules": [
    {
      "description": "Group all non-major updates into a single PR",
      "matchUpdateTypes": ["minor", "patch", "digest"],
      "groupName": "non-major dependencies",
      "automerge": true
    },
    {
      "description": "Keep every major bump isolated and manual",
      "matchUpdateTypes": ["major"],
      "automerge": false,
      "labels": ["dependencies", "major-review"]
    },
    {
      "description": "Pin Docker base-image digests for reproducible builds",
      "matchManagers": ["dockerfile", "docker-compose"],
      "pinDigests": true
    }
  ]
}

The config:recommended preset is the sensible default set (it replaced the old config:base name in Renovate 36). It already switches on the Dependency Dashboard — a single tracking issue that lists every pending, rate-limited and errored update — so you do not need to add :dependencyDashboard by hand. Open that issue and you have your board-reportable view of dependency debt in one place.

Grouping, scheduling and the PR firehose

The default behaviour is one PR per dependency. That is the firehose. The first package rule collapses every minor, patch and digest update into a single grouped branch called non-major dependencies, so a week’s worth of low-risk bumps arrives as one review, not thirty. If mixing an npm bump and a pip bump in the same PR bothers you, split the rule by adding "matchManagers": ["npm"] to one copy and ["pip_requirements", "pip-compile", "poetry"] to another, each with its own groupName. You trade a couple more PRs for cleaner blast radius.

The schedule field uses Renovate’s plain-English syntax and is honoured in the timezone you set. Confining new PRs to Monday night keeps the bot out of your working day. prHourlyLimit and prConcurrentLimit cap the rate so a first run against a stale repo does not open a hundred branches at once. lockFileMaintenance refreshes transitive dependencies in the lockfile on a monthly cadence — the updates that never show up as a direct version bump but quietly carry the fixes.

Majors are deliberately carved out into their own rule with automerge: false and a major-review label. A major bump is a breaking change by definition; it belongs in front of a human. Renovate separates major from minor by default, but stating it explicitly means the intent survives the next person who edits this file.

Automerge only works if something can block it

This is the line people miss. automerge: true does not mean “merge blindly”. Renovate will only merge a PR once its required status checks pass, and it uses the platform’s own auto-merge to do it. If the branch has no protection rule and no required check, there is nothing for automerge to wait on — and equally, nothing stopping a broken patch. Automerge is only as safe as the CI gate behind it.

So the prerequisite for trusting automerge is a real pipeline: tests, a lint pass, a build. If you have not got that yet, start with a baseline GitHub Actions CI pipeline and a pre-commit baseline that actually runs, mark those checks as required on the default branch, and only then let low-risk updates merge themselves. Automerge without a gate is not automation; it is unattended deployment.

Running it: hosted app or your own Action

Two ways to actually run Renovate. The simplest is the Mend-hosted Renovate GitHub App: install it, and it reads the same renovate.json. Zero infrastructure, and the right answer for most teams. Self-host when you need updates to run inside your own network, against a private registry, or on a schedule and log trail you control. On GitHub, that is the official Action:

name: renovate
on:
  schedule:
    - cron: "0 2 * * 1-5"   # 02:00 UTC, weekdays
  workflow_dispatch: {}

permissions:
  contents: read

jobs:
  renovate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Self-hosted Renovate
        # pin to the current release tag from the Marketplace
        uses: renovatebot/github-action@v41.0.34
        with:
          token: ${{ secrets.RENOVATE_TOKEN }}
        env:
          RENOVATE_REPOSITORIES: your-org/your-repo

Two things to get right. The token needs write access to open PRs and, ideally, a separate identity from your own so automerged commits are attributable — a dedicated GitHub App installation token beats a personal access token here. And pin the renovatebot/github-action tag to a specific release rather than a floating major; check the Marketplace for the current version. The workflow’s own cron only controls when Renovate runs; the schedule inside renovate.json still governs when PRs are allowed to open, so the two work together.

Pinning versus ranging

One decision underpins the lot. rangeStrategy: "bump" keeps your declared ranges in package.json and raises the floor as updates land, which reads well in review. Prefer fully pinned exact versions and you get reproducible installs and a clear audit trail at the cost of more, noisier PRs — which is exactly what the grouping rule above is there to absorb. For application repos I pin and group; for a shared library I keep ranges so downstream consumers are not boxed in. The same logic applies to the Docker layer, where pinDigests nails the base image to a content hash so your Compose stack builds the same bytes tomorrow as it did today.

Dependency currency is one of the first things a technology due-diligence or supplier-assurance review actually checks, and “the bot merges patches and a human signs off majors, here is the dashboard” is a far better answer than a spreadsheet of intentions. If you want that evidenced across an estate rather than a single repo, that is the kind of change-governance baseline I set up as a fractional CTO.

Advisory engagements are priced as fixed-scope packages or a monthly retainer, not by the hour. If dependency drift has become a standing audit finding, book a call and we will start with the repos that carry the most risk.

Free interactive tool

Website compliance checklist

What your site has to do, based on what it actually does

Answer as much or as little as you like — the list builds as you go. Nothing is stored against your name and no email is required.

Most technology problems are not technology problems. They are control problems.

The systems exist. The investment has been made. The question is whether leadership can understand, direct, evidence, and sustain what those systems produce. Find out where control exists — and where it only appears to.