Dependencies go stale quietly until an upgrade becomes a project. Dependabot is built into GitHub and only needs one small file to start sending you weekly update pull requests.
Create the config file
In your repository on GitHub, click Add file, then Create new file, and name it
.github/dependabot.yml. It has to be in the.githubfolder on your default branch.Say what to update and how often
Paste this. It covers npm packages and the GitHub Actions in your workflows; swap
npmfor your package manager if you use another, such aspip,bundlerorgomod:version: 2 updates: - package-ecosystem: "npm" directory: "/" schedule: interval: "weekly" - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly"Commit it
Click Commit changes. Dependabot checks shortly afterwards and then once a week, opening a pull request for each outdated dependency.
Review and merge the pull requests
Let your tests run on each pull request and merge the ones that pass. Small weekly updates are much easier to review than a year's worth at once.
Paste this into Claude Code, Codex, Cursor or any coding agent. The agent writes and sets up the automation, then tells you what to click.
Add Dependabot version updates to this repository. - Detect every package ecosystem in the repo (including subdirectories and GitHub Actions workflows) and add an entry for each to .github/dependabot.yml. - Run weekly on Monday, group minor and patch updates into one pull request per ecosystem, and keep major updates as separate pull requests. - Limit open pull requests to 5 per ecosystem and add the label "dependencies". - If the repo has CI, make sure it runs on pull requests so Dependabot's PRs get tested. - Commit on a new branch and open a pull request explaining what it will do.
You still need to
- Review the pull requests Dependabot opens.
Things that trip people up
- Without tests running on pull requests, you're merging updates blind. Make sure CI runs on them.
- A repository with many dependencies can get a lot of pull requests at first. Grouping updates (in the agent version) keeps it manageable.