InsightsAutomation
Automated dependency updates with Renovate that teams do not mute
How to configure Renovate so dependency updates arrive grouped, on a schedule and after a cooling-off period, with low-risk changes merged automatically and major upgrades waiting for a decision.
Published October 15, 20267 min read
Most teams turn on a dependency bot once. A week later there are forty open pull requests, half of them failing, and someone adds the bot's label to an email filter. Six months on, the repository is as out of date as it was before, with the extra noise of a bot nobody reads.
The problem is rarely the tool. It is that every update is treated the same way: one pull request per package, opened the moment a release appears, waiting for a human. Renovate can do much better than that, but only if the configuration says which updates are routine and which need a decision. This article walks through a configuration that does, and the places it goes wrong.
What a good setup looks like
The aim is a small, predictable stream of work:
- Routine updates merge themselves when CI passes. Patch releases, GitHub Actions digests and lock file refreshes should not need a reviewer.
- Related updates arrive together. Twelve packages from the same monorepo, or every Terraform provider, belong in one pull request.
- Nothing lands on day zero. A short delay after each release lets the ecosystem find broken or malicious versions before you install them.
- Major upgrades wait for someone to choose them, instead of sitting open and red for months.
- Security fixes skip the queue.
Start from a preset
Renovate's built-in presets cover most of the sensible defaults. config:recommended turns on the Dependency Dashboard, groups packages released together from known monorepos and applies a set of replacements and workarounds. config:best-practices extends it and adds digest pinning for Docker images and GitHub Actions, weekly lock file maintenance, a three-day wait for npm packages and a migration pull request when your configuration uses deprecated options.
Start from config:best-practices and add only what is specific to your organization:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:best-practices"],
"timezone": "Europe/Bucharest",
"schedule": ["* 0-6 * * 1-5"],
"prConcurrentLimit": 5,
"minimumReleaseAge": "3 days",
"packageRules": [
{
"matchUpdateTypes": ["patch", "digest", "pinDigest"],
"automerge": true,
"automergeType": "branch"
},
{
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "dev dependencies",
"automerge": true
},
{
"matchDatasources": ["terraform-provider"],
"groupName": "terraform providers"
},
{
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
}
]
}The rest of this article explains each part.
Schedules and limits
By default Renovate opens branches whenever it runs. A schedule restricts when new branches are created, so updates arrive in one batch rather than trickling in all day. Renovate recommends cron syntax for schedules; the older natural-language syntax is deprecated. The minutes field must be *, so * 0-6 * * 1-5 means "between midnight and 07:00, Monday to Friday". Set timezone to an IANA name, otherwise the schedule is evaluated in UTC.
Two limits keep the queue manageable:
prConcurrentLimitcaps how many Renovate pull requests can be open at once. The default is 10.prHourlyLimitcaps how many are created per hour. The default is 2.
A low concurrent limit forces the queue to drain before more arrives. If updates pile up behind the limit, the Dependency Dashboard lists them, so nothing is hidden.
One subtlety: with a schedule, Renovate stops creating branches outside the window but may still rebase existing ones. That is usually what you want. Set updateNotScheduled to false only if CI capacity during working hours is a real constraint.
A cooling-off period
minimumReleaseAge holds an update until the release has been public for the given time. Three days is a common choice. It catches the releases that get yanked or patched within hours, and it is the cheapest defence against a compromised package version that is detected and removed quickly.
Two details matter:
- It needs a release timestamp from the datasource. With the default
minimumReleaseAgeBehaviouroftimestamp-required, a release without a timestamp is treated as not yet old enough. If updates for some datasource never seem to arrive, check this first. - The branch is not created until the wait is over. With the default
internalChecksFilterofstrict, Renovate waits rather than opening a pull request with a pending check, which keeps the queue clean.
Do not use a cooling-off period on internal packages your own teams publish. They want those updates as soon as they are released. Instead of a top-level setting, put minimumReleaseAge in a package rule that excludes them with a negated pattern such as "matchPackageNames": ["!@my-org/**"].
Automerge, safely
Automerge is what makes the volume tolerable. It is only safe when CI actually tests something, so before turning it on, check that the repository's required status checks would catch a broken dependency. If the only check is a lint step, automerge will happily merge a runtime failure.
There are two modes worth knowing:
automergeType | What happens | Suits |
|---|---|---|
pr (default) | Opens a pull request and merges it once checks pass | Updates you want a visible record of |
branch | Pushes a branch, merges it directly when checks pass, opens a pull request only if they fail | High-volume, low-risk updates such as digests and patches |
Branch automerge produces far less noise: the only trace of a successful update is a commit on the main branch. Failures still surface as a pull request, which is exactly the signal you want.
On GitHub, platformAutomerge is on by default, so Renovate uses the platform's native auto-merge. That requires "Allow auto-merge" to be enabled in the repository settings, and branch protection must require the checks you rely on. Without required checks, native auto-merge has nothing to wait for. Native auto-merge can also merge outside automergeSchedule, since the platform queues the merge as soon as the pull request is created.
Grouping
groupName puts every matching update into one branch and pull request. Group where the updates genuinely move together or where reviewing them separately adds nothing:
- Monorepo releases, such as a framework and its plugins.
config:recommendedalready covers well-known monorepos. - Terraform providers across a repository, so one plan shows the combined effect.
- Dev dependencies at minor and patch level, which rarely break production.
Do not group too widely. A single "all dependencies" pull request fails if any one update breaks, and then every update is blocked until someone finds which one did. Groups of related, low-risk updates work; one giant group does not.
Major upgrades on request
Major versions are where real work lives: breaking changes, migrations, code edits. Opening a pull request for each one as soon as it appears produces long-lived red pull requests that block the concurrent limit.
dependencyDashboardApproval on major updates changes that. Renovate lists them on the Dependency Dashboard issue with a checkbox, and only opens the pull request when someone ticks it. The dashboard becomes the backlog of upgrades, and a team can pick them up in planning instead of discovering them in a wall of pull requests.
Renovate keeps major and minor updates separate by default (separateMajorMinor is true), so a package can keep receiving automerged patches while its major upgrade waits.
Security fixes
On GitHub, Renovate can open pull requests for dependencies with known vulnerabilities, based on GitHub's advisories. It requires the dependency graph and Dependabot alerts to be enabled on the repository. These pull requests ignore schedule and prHourlyLimit, are not limited by prConcurrentLimit, and get a [SECURITY] suffix in the commit message. Add a label and route them to the owning team's channel so they are not lost among routine updates.
Dependencies Renovate cannot see
Versions hide in places no package manager owns: a tool version in a Dockerfile ARG, a CLI downloaded in a CI script, a chart version in a Makefile. A regex custom manager teaches Renovate to find them. A comment next to the version tells it where to look up releases:
# renovate: datasource=github-releases depName=helm/helm
ARG HELM_VERSION=v3.16.2{
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["/(^|/)Dockerfile$/"],
"matchStrings": [
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+ARG \\S+_VERSION=(?<currentValue>\\S+)"
]
}
]
}The annotation convention scales well: once the manager exists, any team can opt a version in by adding a comment, without touching the Renovate configuration.
Sharing configuration across repositories
Copying renovate.json into a hundred repositories means a hundred files to change when the policy changes. Put the shared rules in a preset repository instead, and have each repository extend it:
{
"extends": ["local>my-org/renovate-config"]
}The platform team owns the preset and changes it through review. Repositories keep the right to add their own packageRules for exceptions, which they should explain in a commit message. Combined with :configMigration, which config:best-practices includes, this keeps a large estate on one reviewed policy.
A rollout order that works
- Enable Renovate on a few repositories with good test coverage, using
config:best-practices, a schedule and a lowprConcurrentLimit. - Clear the initial backlog with the Dependency Dashboard, starting with the groups and the patches.
- Turn on branch automerge for patches and digests once CI has proved it catches breakages.
- Move the configuration into a shared preset, and require dashboard approval for major upgrades.
- Add custom managers for the versions hidden in Dockerfiles and scripts.
- Roll out to the remaining repositories, fixing flaky tests where automerge exposes them.