Skip to main content
This guide shows how to enable Dependabot version updates in a repository so Dependabot can automatically open pull requests that keep dependencies current. It covers the minimal dependabot.yml configuration, how to track runs, and how to review and handle Dependabot PRs. Overview
  • Dependabot checks package manifests (like package.json) and opens PRs when new versions are available.
  • The updater runs on a schedule as a GitHub action/workflow and writes logs you can inspect.
  • You control what ecosystems to scan, where manifests live, the schedule, reviewers, and concurrency via dependabot.yml.
I’m in the repository settings under Advanced Security. If you scroll down, there is a Dependabot option to allow Dependabot to open PRs to automatically keep your dependencies current. Dependabot performs these version checks using an updater action/workflow.
A dark-themed GitHub Advanced Security settings page showing Dependabot options. It lists Dependabot alerts and security update settings with enable/disable controls.
Configure dependabot.yml (minimal example) Below is the minimal, correct dependabot.yml (version 2) used in this repository. It instructs Dependabot to check npm (Node.js) dependencies in the repository root weekly on Sundays at 10:50 (UTC), limits open PRs to 5, and requests review from the game-devstudio/PC-Devs team.
Key dependabot.yml fields
Ensure the team (or users) listed in reviewers have write access to the repository so they can review/merge Dependabot PRs.
Commit and run Commit dependabot.yml to the repository (typically .github/dependabot.yml or .github/dependabot.yml at the repo root). Dependabot will start running on the configured schedule and will create upgrade PRs when newer package versions are discovered. Viewing Dependabot activity and logs You can track Dependabot runs and logs at: Repository → Insights → Dependency graph → Dependabot tab. The Dependabot updater runs as an action/workflow and writes log output showing startup, job processing, and other details. Below is an excerpt from a recent run:
A dark‑themed screenshot of a GitHub repository's "Insights" page showing the Dependency graph → Dependabot tab with a banner reading "Update check processed" and a section for Dependabot update logs. The left sidebar lists repo insight sections like Pulse, Community, Traffic, and Network.
How Dependabot creates PRs When updates are available, Dependabot opens pull requests that bump package versions (and update lockfiles). In this repository the updater created several dependency-bump PRs for packages such as express, mongoose, and nyc. You can find them on the repository’s Pull requests page and review them like any other PR.
A dark-themed GitHub "Pull requests" page for the repo game-devstudio/ghas-guardrail-demo showing a list of open PRs (dependency bumps like express, mongoose, nyc) and a "New pull request" button.
Reviewing and merging Dependabot PRs
  • Open the PR and review change details and CI results.
  • If you merge other changes that affect the PR, ask Dependabot to rebase the PR by commenting:
Once merged, package.json (and your lockfile) will reflect the upgraded versions.
A screenshot of a GitHub repository page for "ghas-guardrail-demo," showing the repo header, branch selector, and a file list including .github, images, README.md, app.js, and package.json. The right sidebar shows repository details like About, Releases, and Contributors.
Best practices and tips
  • Run Dependabot weekly for most repos; increase frequency for fast-moving projects.
  • Limit open-pull-requests-limit to keep noise manageable.
  • Use reviewers or code owners to route PRs to the right team.
  • Combine Dependabot version updates with GHAS security alerts to both detect vulnerable dependencies and automatically propose fixes.
Links and references

Watch Video