Learning center

Which dependency bot pull requests need a human reviewer?

Let patch and minor updates to development tools merge on required checks, and send major, runtime and security-sensitive updates to a person. Under required reviews, a bot's pull request cannot merge until something approves it, so decide on purpose whether that is a person, a workflow or an app.

How Dependabot and Renovate meet your review rules#

Neither bot is exempt from branch rules. Renovate's documentation is direct about it: "If you have mandatory Pull Request reviews then it means Renovate cannot automerge its own PR until such a review has happened," and a CODEOWNERS file "could block automerging, because it means a code owner must review the PR." It lists two ways around the review on GitHub: the branch protection option "Allow specified actors to bypass required pull requests," or helper apps that "will mark all automerging Pull Requests by Renovate as approved." By default it "will not automerge until it sees passing status checks." Renovate: automerge

For Dependabot, GitHub's docs show the pieces as separate workflows. dependabot/fetch-metadata exposes dependency-names, dependency-type and update-type; one example approves with gh pr review --approve, and another enables auto-merge with gh pr merge --auto only for patch updates to one named dependency. The docs add that if you use status checks, "you should enable Require status checks to pass before merging for the target branch," so a pull request is "not merged unless all the required status checks pass." Automating Dependabot with GitHub Actions The action's README lists the possible dependency-type values as direct:production, direct:development and indirect (read 2026-11-23). fetch-metadata README

The approving example uses GITHUB_TOKEN, so it only works where Actions is allowed to approve pull requests, a setting the guide to Actions approvals argues should usually stay off.

A fictional split between checks and a person#

Suppose a fictional repository, acme/storefront, requires one approval and passing build and test checks on main. Dependabot opens several pull requests every week. The team reads the last month of them and sorts them by what a reviewer actually did:

Kind of updateWhat the reviewer didWhat should merge it
Patch or minor of a linter, formatter or test runnerApproved after CI passedRequired checks
Patch of a runtime libraryApproved after CI passed, sometimes read the changelogRequired checks, with a person for packages on a short list
Minor of a runtime libraryRead the changelog, sometimes changed codeA person
Major of anythingRead migration notes, changed codeA person
Package that handles auth, crypto, payments or serializationRead the diff of the packageA person, whatever the version change

The first row is where review adds nothing CI does not. The reviewer's approval only records that CI went green. The last row is where CI is weakest, because a tampered or buggy release of a crypto library can pass tests that never exercise the changed path.

The team keeps human review in place and lets the first row merge on checks with a workflow that enables auto-merge and labels, but does not approve:

name: dependabot-triage
on: pull_request
permissions:
  contents: write
  pull-requests: write
  issues: write
jobs:
  triage:
    runs-on: ubuntu-latest
    if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'acme/storefront'
    steps:
      - id: metadata
        uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7
        with:
          github-token: "${{ secrets.GITHUB_TOKEN }}"
      - name: Label for review
        if: steps.metadata.outputs.dependency-type != 'direct:development' || steps.metadata.outputs.update-type == 'version-update:semver-major'
        run: gh pr edit "$PR_URL" --add-label "needs-human-review"
        env:
          PR_URL: ${{ github.event.pull_request.html_url }}
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - name: Queue development-tool updates
        if: steps.metadata.outputs.dependency-type == 'direct:development' && steps.metadata.outputs.update-type != 'version-update:semver-major'
        run: gh pr merge --auto --squash "$PR_URL"
        env:
          PR_URL: ${{ github.event.pull_request.html_url }}
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Auto-merge still waits for the required approval. To let the first row merge on checks alone, something has to stand in for that approval, and each option moves the policy somewhere else. An approval workflow or a helper app approves whatever its conditions match, so those conditions become the policy, and they should live in a file with a code owner. A bypass entry for the bot skips the review for every pull request the bot opens, so the bot's own configuration becomes the policy. With Renovate, that configuration is packageRules, for example "matchUpdateTypes": ["minor", "patch"] with "automerge": true, as in its documented examples. Keeping a person on the first row is also a valid answer, as long as you accept that their approval records a green build and little else.

If main uses a merge queue, note that "the built-in GITHUB_TOKEN cannot add pull requests to the queue"; the docs say to use "a personal access token or a GitHub App token that has permission to merge" for that step. Automating Dependabot with GitHub Actions

What merging on checks does not catch#

Required checks see what your tests exercise. A patch release that changes behavior your tests do not cover, sends data somewhere new, or adds an install script passes them. Semantic versioning is a promise by the package's maintainers; version-update:semver-patch describes the version number, not the content. Lockfile-only and indirect updates can change many packages at once, and the diff a reviewer sees is a lockfile they are unlikely to read line by line, which is why the guide to generated and vendored files treats lockfile ownership separately.

The cost on both sides#

Requiring a person for every update turns reviewers into a click-through step for the first row, and approvals given without reading train the habit you least want on the last row. Merging everything on checks removes that cost and moves the risk to whichever packages your tests cover least.

Decide#

  1. Sort a month of bot pull requests by what the reviewer did, as in the table.
  2. Let only the rows where the reviewer did nothing beyond waiting for CI merge on checks.
  3. Keep a short, named list of packages that always need a person, whatever the version change.
  4. Make the exemption visible: a label on every pull request it covers, a named bypass entry, or an approver whose conditions sit in a reviewed file, never an approval workflow that nobody remembers adding.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading