dependabot.yml example
dependabot.yml tells GitHub which dependencies to check, how often and how to group the update pull requests. Save the example below as .github/dependabot.yml, remove the ecosystems you don't use, and push it to your default branch to get the first pull requests.
Updated
Files
version: 2
updates:
# npm packages: one weekly pull request for minor and patch updates, separate ones for majors.
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
day: monday
time: "06:00"
timezone: Europe/Vienna
open-pull-requests-limit: 10
groups:
minor-and-patch:
update-types: [minor, patch]
commit-message:
prefix: chore
include: scope
labels: [dependencies]
# GitHub Actions versions in .github/workflows.
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
groups:
actions:
patterns: ["*"]
commit-message:
prefix: ci
labels: [dependencies]
# Base images in the Dockerfile.
- package-ecosystem: docker
directory: /
schedule:
interval: weekly
commit-message:
prefix: chore
labels: [dependencies]Save with your agent
Run this command to add Sniptide to Claude Code in the current project. Open /mcp in Claude Code and sign in to Sniptide. Once the server shows as connected, use the prompt below to save a private copy in your library.
claude mcp add --scope local --transport http sniptide https://app.sniptide.com/api/mcpRead https://sniptide.com/templates/dependabot-yml.json and use create_snippet to save its files as a private Sniptide snippet titled "dependabot.yml example". Keep the file names and contents from the JSON.Turn it on
Commit the file at .github/dependabot.yml on the default branch. Dependabot reads it on the next push and runs the first check. Open Insights → Dependency graph → Dependabot to see each ecosystem's last run and any errors. Dependabot options reference
Create the dependencies label first, or Dependabot opens the pull requests without it.
What each part does
Setting | What it does | When to change it |
|---|---|---|
package-ecosystem | The package manager to check. npm also covers pnpm and Yarn lockfiles, and Bun has its own bun value. | Add pip, uv, gomod, cargo or others for your stack. |
directory | Where the manifest lives. | Use directories: ["/apps/*"] in a monorepo. |
schedule | How often Dependabot checks, and when. | Daily for fast-moving projects, monthly for stable ones. |
groups | Bundles matching updates into one pull request. | Group what you review together. Majors stay separate here because they need reading. |
open-pull-requests-limit | The cap on open update pull requests per ecosystem. The default is 5. | Raise it when updates queue up. |
commit-message | The commit and title prefix. | Match your commit convention. |
Security updates for known vulnerabilities are a separate setting under Settings → Code security. They open pull requests as soon as an advisory is published, whatever the schedule says.
Variant: wait before taking new releases
cooldown delays version updates until a release has been out for some days, which keeps a freshly compromised or broken release out of your lockfile. Security updates ignore it.
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
cooldown:
default-days: 5
semver-major-days: 30Variant: ignore a package
Use ignore for a dependency you upgrade by hand, such as a framework with a migration guide:
ignore:
- dependency-name: next
update-types: ["version-update:semver-major"]