Skip to content
Sniptide

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

.github/dependabot.ymlRaw
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.

Terminal
claude mcp add --scope local --transport http sniptide https://app.sniptide.com/api/mcp
Prompt
Read 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.

.github/dependabot.yml
  - package-ecosystem: npm
    directory: /
    schedule:
      interval: weekly
    cooldown:
      default-days: 5
      semver-major-days: 30

Variant: ignore a package

Use ignore for a dependency you upgrade by hand, such as a framework with a migration guide:

.github/dependabot.yml
    ignore:
      - dependency-name: next
        update-types: ["version-update:semver-major"]
All templates
  • Project setupGitHub Actions Node CI

    A GitHub Actions workflow for Node.js that lints, type checks, tests and builds on pushes to main and pull requests, with pnpm, matrix and Postgres variants.

  • CODEOWNERS
    Project setupCODEOWNERS file example

    A CODEOWNERS file example for a monorepo with team owners per folder, the precedence rule explained, and how to require code owner reviews on GitHub.

  • SECURITY.md
    Project setupSECURITY.md template

    A SECURITY.md template with supported versions, private vulnerability reporting, response times, scope and safe harbor for a GitHub repository.

Pick where your library lives.

Use sniptide.com

Save your first pattern in the app, then connect Claude Code, Cursor or Codex with one sign-in in the browser.

Run it on your own server

One image and a database give you the app, the API and the MCP endpoint. Sniptide is open source under AGPL-3.0.

$docker compose up -d