# 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 November 30, 2026. Canonical: https://sniptide.com/templates/dependabot-yml
Open it in the Sniptide editor: https://app.sniptide.com/new?template=dependabot-yml
Files as JSON: https://sniptide.com/templates/dependabot-yml.json

## Files

### .github/dependabot.yml

```yaml
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]
```

## Turn it on [#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](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference)

Create the `dependencies` label first, or Dependabot opens the pull requests without it.

## What each part does [#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 [#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.

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

## Variant: ignore a package [#variant-ignore-a-package]

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

```yaml title=".github/dependabot.yml"
    ignore:
      - dependency-name: next
        update-types: ["version-update:semver-major"]
```
