Skip to content

Renovate bot — automated dependency updates

Renovate keeps every dependency in every repo current via auto-opened PRs. Self-hosted install, config strategy, and the merge automation we ship.

Renovate scans repositories for dependency declarations — npm, pip, Maven, Go modules, Helm charts, Dockerfile FROM lines, Terraform providers, GitHub Actions, Kustomize image tags — and opens pull requests when newer versions exist. With a sensible config and tight merge automation, an engineering organization stops carrying the weekly toil of “what’s out of date” and starts being current by default. This article covers the self-hosted install, the config strategy we ship for clients, and the merge automation that keeps Renovate from becoming PR-spam.

How to verify

docker run --rm renovate/renovate --version
docker logs renovate-runner --tail 200
gh pr list -A -l "dependencies" --json title,labels | jq
# inside a target repo:
cat renovate.json
# Renovate's debug runs:
LOG_LEVEL=debug docker run --rm -e LOG_LEVEL renovate/renovate <repo>

LOG_LEVEL=debug is the workhorse: it prints exactly which dependency types Renovate looked for, which it matched, which versions it found upstream, and which rules applied. When a PR doesn’t open, the debug log explains why.

What’s happening

Renovate is a Node.js binary that, for each repo: (1) clones, (2) scans for known dependency formats, (3) queries upstream registries for newer versions, (4) groups changes per the config, (5) opens or updates branches and PRs. The bot’s identity is a GitHub App, GitLab user, Bitbucket app password, or similar — it needs commit and PR-write permissions on the repos it manages.

Two operating modes:

  • Hosted Mend (formerly Renovate App). Free for OSS, SaaS for everyone else. Install the GitHub App, write a config, the upstream bot does the rest.
  • Self-hosted. Run the renovate/renovate Docker image on a cron, point it at your repos with a token. This is the right shape when you’re behind a VPN, when your VCS is self-hosted (GitLab CE, Gitea, Forgejo, Bitbucket Server), or when you need control over schedule and concurrency.

The config has three layers that compose:

  • config.js (server-side) — applies to every repo the bot processes. Set platform, token, schedule, allowed repos.
  • Preset shared config — extends: ["config:recommended"] pulls a published preset; your org can ship its own (acme/renovate-config:default).
  • Repo-level renovate.json — per-repo overrides; can disable specific managers, add packageRules, schedule changes per environment.

The procedure

  1. Create a bot user/app. GitHub: create a GitHub App in the org, install on the target repos, grab the app ID and private key. GitLab/Gitea: create a user with api scope and a PAT.

  2. Server config in config.js:

    module.exports = {
      platform: 'github',
      gitAuthor: 'Renovate Bot <renovate@acme.example>',
      username: 'acme-renovate-bot',
      token: process.env.RENOVATE_TOKEN,
      autodiscover: true,
      autodiscoverFilter: ['acme/*', 'acme-internal/*'],
      onboarding: true,
      onboardingConfig: { extends: ['acme/renovate-config:default'] },
      repositoryCache: 'enabled',
      prConcurrentLimit: 10,
      prHourlyLimit: 4,
      dependencyDashboard: true,
      schedule: ['after 6am on monday', 'after 6am on thursday'],
    };

    dependencyDashboard: true makes Renovate post a single issue per repo listing all pending updates — the operator’s quick “what’s coming up” view.

  3. Org preset in a shared renovate-config repo (default.json):

    {
      "extends": [
        "config:recommended",
        ":timezone(America/Toronto)",
        ":semanticCommits",
        ":maintainLockFilesWeekly"
      ],
      "packageRules": [
        {
          "matchUpdateTypes": ["minor", "patch"],
          "matchPackageNames": ["*"],
          "groupName": "minor and patch deps",
          "schedule": ["after 6am on monday"]
        },
        {
          "matchUpdateTypes": ["major"],
          "addLabels": ["major-update"],
          "automerge": false
        },
        {
          "matchDatasources": ["docker"],
          "matchUpdateTypes": ["patch"],
          "automerge": true,
          "platformAutomerge": true
        },
        {
          "matchManagers": ["github-actions"],
          "automerge": true,
          "platformAutomerge": true
        }
      ],
      "vulnerabilityAlerts": {
        "enabled": true,
        "labels": ["security"],
        "schedule": ["at any time"]
      }
    }

    The pattern: minor+patch grouped into one weekly PR; major flagged for human review; security fixes scheduled “at any time” so they’re not blocked by the weekly cadence; GitHub Actions patches auto-merge.

  4. Run on a schedule. GitHub Actions cron, GitLab CI scheduled pipeline, or a cronjob on Kubernetes:

    on:
      schedule: [{ cron: "0 */4 * * *" }]
      workflow_dispatch: {}
    jobs:
      renovate:
        runs-on: ubuntu-latest
        container: ghcr.io/renovatebot/renovate:37
        steps:
          - run: renovate
            env:
              RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
              RENOVATE_CONFIG_FILE: config.js
  5. Repo onboarding. First time Renovate processes a repo, it opens an “Onboarding PR” with a default renovate.json. Merging this is the repo’s opt-in.

  6. Merge automation. automerge: true lets Renovate merge after CI passes — but only for the rules that allow it. We default automerge: true for: patch-only updates to widely-used libs, GitHub Actions, Docker base image patches. We default automerge: false for: major updates, anything matching packageRules.matchPackageNames of “critical” libs (a per-client list).

  7. Vulnerability alerts. GitHub’s Dependabot alerts are the source; Renovate reads them and prioritizes security fixes. vulnerabilityAlerts.schedule: ["at any time"] bypasses the regular weekly cadence — security updates open immediately.

Common pitfalls

  • prConcurrentLimit too high. A repo with 200 deps and no grouping rule opens 200 PRs. Default 10 is sane; group everything into “minor and patch deps” otherwise.
  • automerge: true everywhere. Renovate merges anything passing CI, including major breaking changes if CI is weak. Tighten matchUpdateTypes first.
  • Bot token without PR-write. Renovate creates branches but can’t open PRs; you see branches piling up with no PRs. Check token scopes.
  • schedule in the wrong timezone. Default is UTC; “after 6am” means 1am in EDT. Add :timezone(...).
  • Forgot repositoryCache: 'enabled'. Each run re-scans every dep type in every repo; with cache enabled, only changed repos do full work. The non-cached runtime is 10-50× slower.

We deploy and operate Renovate for clients across multi-repo organizations — typically with a self-hosted runner pinned to their VPC for private dependency registries. The bot identity, the org preset, the per-repo rules, and the on-call response to “Renovate opened a PR that broke prod” are operated by our team. That delivery shape lives inside /en/services/managed-operations/. For organizations that need Dependabot specifically (e.g. compliance mandates it), see /en/knowledge-base/dependabot-self-hosted-pattern/.