Dependabot
GitHubOfficialFirst committed by VeVarunSharmaDistributed by GitHub
- Skill
- Tool integration
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
Dependabot is GitHub's native solution for keeping project dependencies secure and up-to-date. This skill provides instructions on configuring the .github/dependabot.yml file to manage version updates, security patches, and dependency grouping across various ecosystems. It covers advanced strategies for monorepos, private registry access, scheduling, and PR customization, while also detailing how to interact with Dependabot via PR comments and integrate pre-commit vulnerability scanning using the GitHub MCP Server.
What it does
- Configures automated dependency version and security updates via dependabot.yml
- Supports grouping dependencies to reduce pull request noise in monorepos
- Manages scheduling, cooldown periods, and custom PR labeling
- Integrates private registries for secure dependency management
- Provides guidance on using PR commands to rebase, ignore, or recreate updates
- Facilitates pre-commit vulnerability scanning through the GitHub MCP Server
When to use it
- When setting up Dependabot for the first time in a repository
- When optimizing existing configuration to reduce PR volume or noise
- When managing dependencies in complex monorepo structures
- When configuring security-only updates or private registry access
- When needing to scan for vulnerabilities before committing code changes
Advantages
- Centralized configuration for all dependency ecosystems
- Reduces manual maintenance and security risk through automation
- Highly customizable grouping and scheduling options
- Native integration with GitHub's security advisory database
Usage examples
- “How do I group all my npm dependencies into a single weekly pull request?”
- The agent will provide a dependabot.yml snippet using the groups key with dependency-type or pattern filters to consolidate updates.
- “Configure Dependabot for a monorepo with multiple apps and packages.”
- The agent will explain how to use the directories key with glob patterns like /apps/* and /packages/* to ensure full coverage.
- “How can I scan my current branch for vulnerable dependencies before I commit?”
- The agent will guide you to use the GitHub MCP Server's dependabot toolset or the Advanced Security plugin to perform a pre-commit vulnerability check.
- “How do I ignore a specific dependency version in Dependabot?”
- The agent will show you how to add an ignore block to your dependabot.yml or use the @dependabot ignore comment on an existing PR.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/github/dependabot/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip dependabot.zip -d .agents/skills
Documentation by VeVarunSharma
Dependabot Configuration & Management
Overview
Dependabot is GitHub's built-in dependency management tool with three core capabilities:
Dependabot Alerts — Notify when dependencies have known vulnerabilities (CVEs)
Dependabot Security Updates — Auto-create PRs to fix vulnerable dependencies
Dependabot Version Updates — Auto-create PRs to keep dependencies current
All configuration lives in a single file: .github/dependabot.yml on the default branch. GitHub does not support multiple dependabot.yml files per repository.
Configuration Workflow
Follow this process when creating or optimizing a dependabot.yml:
Step 1: Detect All Ecosystems
Scan the repository for dependency manifests. Look for:
| Ecosystem | YAML Value | Manifest Files |
|---|---|---|
| npm/pnpm/yarn | npm | package.json, package-lock.json, pnpm-lock.yaml, yarn.lock |
| pip/pipenv/poetry | pip | requirements.txt, Pipfile, pyproject.toml, setup.py |
| uv | uv | pyproject.toml, uv.lock |
| Docker | docker | Dockerfile |
| Docker Compose | docker-compose | docker-compose.yml |
| GitHub Actions | github-actions | .github/workflows/*.yml |
| Go modules | gomod | go.mod |
| Bundler (Ruby) | bundler | Gemfile |
| Cargo (Rust) | cargo | Cargo.toml |
| Composer (PHP) | composer | composer.json |
| NuGet (.NET) | nuget | *.csproj, packages.config |
| .NET SDK | dotnet-sdk | global.json |
| Maven (Java) | maven | pom.xml |
| Gradle (Java) | gradle | build.gradle |
| Terraform | terraform | *.tf |
| OpenTofu | opentofu | *.tf |
| Helm | helm | Chart.yaml |
| Hex (Elixir) | mix | mix.exs |
| Swift | swift | Package.swift |
| Pub (Dart) | pub | pubspec.yaml |
| Bun | bun | bun.lockb |
| Dev Containers | devcontainers | devcontainer.json |
| Git Submodules | gitsubmodule | .gitmodules |
| Pre-commit | pre-commit | .pre-commit-config.yaml |
Notes:
pnpm and yarn both use the
npmecosystem value.Prefer
uvecosystem value whenuv.lockis present; otherwise usepip.
Step 2: Map Directory Locations
For each ecosystem, identify where manifests live. Use directories (plural) with glob patterns for monorepos:
directories:
- "/" # root
- "/apps/*" # all app subdirs
- "/packages/*" # all package subdirs
- "/lib-*" # dirs starting with lib-
- "**/*" # recursive (all subdirs)Important: directory (singular) does NOT support globs. Use directories (plural) for wildcards.
Step 3: Configure Each Ecosystem Entry
Every entry needs at minimum:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"Step 4: Optimize with Grouping, Labels, and Scheduling
See sections below for each optimization technique.
Monorepo Strategies
Glob Patterns for Workspace Coverage
For monorepos with many packages, use glob patterns to avoid listing each directory:
- package-ecosystem: "npm"
directories:
- "/"
- "/apps/*"
- "/packages/*"
- "/services/*"
schedule:
interval: "weekly"Cross-Directory Grouping
Use group-by: dependency-name to create a single PR when the same dependency updates across multiple directories:
groups:
monorepo-deps:
group-by: dependency-nameThis creates one PR per dependency across all specified directories, reducing CI costs and review burden.
Limitations:
All directories must use the same package ecosystem
Applies to version updates only
Incompatible version constraints create separate PRs
Standalone Packages Outside Workspaces
If a directory has its own lockfile and is NOT part of the workspace (e.g., scripts in .github/), create a separate ecosystem entry for it.
Dependency Grouping
Reduce PR noise by grouping related dependencies into single PRs.
By Dependency Type
groups:
dev-dependencies:
dependency-type: "development"
update-types: ["minor", "patch"]
production-dependencies:
dependency-type: "production"
update-types: ["minor", "patch"]By Name Pattern
groups:
angular:
patterns: ["@angular*"]
update-types: ["minor", "patch"]
testing:
patterns: ["jest*", "@testing-library*", "ts-jest"]For Security Updates
groups:
security-patches:
applies-to: security-updates
patterns: ["*"]
update-types: ["patch", "minor"]Key behaviors:
Dependencies matching multiple groups go to the first match
applies-todefaults toversion-updateswhen absentUngrouped dependencies get individual PRs
Multi-Ecosystem Groups
Combine updates across different package ecosystems into a single PR:
version: 2
multi-ecosystem-groups:
infrastructure:
schedule:
interval: "weekly"
labels: ["infrastructure", "dependencies"]
updates:
- package-ecosystem: "docker"
directory: "/"
patterns: ["nginx", "redis"]
multi-ecosystem-group: "infrastructure"
- package-ecosystem: "terraform"
directory: "/"
patterns: ["aws*"]
multi-ecosystem-group: "infrastructure"The patterns key is required when using multi-ecosystem-group.
PR Customization
Labels
labels:
- "dependencies"
- "npm"Set labels: [] to disable all labels including defaults. SemVer labels (major, minor, patch) are always applied if present in the repo.
Commit Messages
commit-message:
prefix: "deps"
prefix-development: "deps-dev"
include: "scope" # adds deps/deps-dev scope after prefixAssignees and Milestones
assignees: ["security-team-lead"]
milestone: 4 # numeric ID from milestone URLBranch Name Separator
pull-request-branch-name:
separator: "-" # default is /Target Branch
target-branch: "develop" # PRs target this instead of default branchNote: When target-branch is set, security updates still target the default branch; all ecosystem config only applies to version updates.
Schedule Optimization
Intervals
Supported: daily, weekly, monthly, quarterly, semiannually, yearly, cron
schedule:
interval: "weekly"
day: "monday" # for weekly only
time: "09:00" # HH:MM format
timezone: "America/New_York"Cron Expressions
schedule:
interval: "cron"
cronjob: "0 9 * * 1" # Every Monday at 9 AMCooldown Periods
Delay updates for newly released versions to avoid early-adopter issues:
cooldown:
default-days: 5
semver-major-days: 30
semver-minor-days: 7
semver-patch-days: 3
include: ["*"]
exclude: ["critical-lib"]Cooldown applies to version updates only, not security updates.
Security Updates Configuration
Enable via Repository Settings
Settings → Advanced Security → Enable Dependabot alerts, security updates, and grouped security updates.
Group Security Updates in YAML
groups:
security-patches:
applies-to: security-updates
patterns: ["*"]
update-types: ["patch", "minor"]Disable Version Updates (Security Only)
open-pull-requests-limit: 0 # disables version update PRsAuto-Triage Rules
GitHub presets auto-dismiss low-impact alerts for development dependencies. Custom rules can filter by severity, package name, CWE, and more. Configure in repository Settings → Advanced Security.
PR Comment Commands
Interact with Dependabot PRs using @dependabot comments.
Note: As of January 2026, merge/close/reopen commands have been deprecated. Use GitHub's native UI, CLI (
gh pr merge), or auto-merge instead.
| Command | Effect |
|---|---|
@dependabot rebase | Rebase the PR |
@dependabot recreate | Recreate the PR from scratch |
@dependabot ignore this dependency | Close and never update this dependency |
@dependabot ignore this major version | Ignore this major version |
@dependabot ignore this minor version | Ignore this minor version |
@dependabot ignore this patch version | Ignore this patch version |
For grouped PRs, additional commands:
@dependabot ignore DEPENDENCY_NAME— ignore specific dependency in group@dependabot unignore DEPENDENCY_NAME— clear ignores, reopen with updates@dependabot unignore *— clear all ignores for all dependencies in group@dependabot show DEPENDENCY_NAME ignore conditions— display current ignores
For the complete command reference, see references/pr-commands.md.
Ignore and Allow Rules
Ignore Specific Dependencies
ignore:
- dependency-name: "lodash"
- dependency-name: "@types/node"
update-types: ["version-update:semver-patch"]
- dependency-name: "express"
versions: ["5.x"]Allow Only Specific Types
allow:
- dependency-type: "production"
- dependency-name: "express"Rule: If a dependency matches both allow and ignore, it is ignored.
Exclude Paths
exclude-paths:
- "vendor/**"
- "test/fixtures/**"Advanced Options
Versioning Strategy
Controls how Dependabot edits version constraints:
| Value | Behavior |
|---|---|
auto | Default — increase for apps, widen for libraries |
increase | Always increase minimum version |
increase-if-necessary | Only change if current range excludes new version |
lockfile-only | Only update lockfiles, ignore manifests |
widen | Widen range to include both old and new versions |
Rebase Strategy
rebase-strategy: "disabled" # stop auto-rebasingDependabot stops rebasing a PR once anyone else pushes a commit to its branch. A [dependabot skip] in that commit's message lifts that stop (it does not override rebase-strategy: "disabled"): the next rebase force-pushes over the branch, which discards the commit. Leave the marker out to keep your commit.
Open PR Limit
open-pull-requests-limit: 10 # default is 5 for version, 10 for securitySet to 0 to disable version updates entirely.
Private Registries
registries:
npm-private:
type: npm-registry
url: https://npm.example.com
token: ${{secrets.NPM_TOKEN}}
updates:
- package-ecosystem: "npm"
directory: "/"
registries:
- npm-privateFAQ
Can I have multiple dependabot.yml files?
No. GitHub supports exactly one file at .github/dependabot.yml. Use multiple updates entries within that file for different ecosystems and directories.
Does Dependabot support pnpm?
Yes. Use package-ecosystem: "npm" — Dependabot detects pnpm-lock.yaml automatically.
How do I reduce PR noise in a monorepo?
Use groups to batch updates, directories with globs for coverage, and group-by: dependency-name for cross-directory grouping. Consider monthly or quarterly intervals for low-priority ecosystems.
How do I handle dependencies outside the workspace?
Create a separate ecosystem entry with its own directory pointing to that location.
Pre-Commit Dependency Scanning via AI Coding Agents
For scanning code changes for vulnerable dependencies inside an AI coding agent before committing, the GitHub MCP Server's dependabot toolset can check your dependency additions against the GitHub Advisory Database and return structured results with affected packages, severity, and recommended fixed versions. For more thorough post-commit checks, it can also run the Dependabot CLI locally to diff dependency graphs before and after your changes.
Install the Advanced Security plugin which provides dedicated dependency scanning tools and the /dependency-scanning skill.
GitHub Copilot CLI (shell):
# Enable the dependabot toolset for the GitHub MCP Server
copilot --add-github-mcp-toolset dependabotGitHub Copilot CLI (inside copilot):
> /plugin install advanced-security@copilot-pluginsVisual Studio Code:
Add
"X-MCP-Toolsets": "dependabot"to your GitHub MCP Server headers, or pick Dependabot from the toolset selector in Copilot ChatInstall the
advanced-securityplugin, then use/dependency-scanningin Copilot Chat
Example prompt:
Scan the dependencies I added on this branch for known vulnerabilities and tell me which versions to upgrade to before I commit.
See: Advanced Security Plugin — Dependency Scanning Skill
Announced in Dependency scanning with GitHub MCP Server is in public preview (May 2026)
Resources
references/dependabot-yml-reference.md— Complete YAML options referencereferences/pr-commands.md— Full PR comment commands referencereferences/example-configs.md— Real-world configuration examples
Files
- ATTRIBUTION.mdAdded by AutoGineer863 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md13.5 KiB
- references/dependabot-yml-reference.md9.5 KiB
- references/example-configs.md8.0 KiB
- references/pr-commands.md4.3 KiB
Requirements and compatibility
Written for: GitHub Copilot
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an MCP server, Needs Node.js
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- First committed by
VeVarunSharma
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · skills/dependabot · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- VeVarunSharma, dajiaohuang, jmatsuzawa
AutoGineer is not affiliated with or endorsed by VeVarunSharma or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download dependabot.zip