Last active
April 21, 2026 16:56
-
-
Save guibranco/648159133ec0ffb28191b3bb8ede4cde to your computer and use it in GitHub Desktop.
Dependabot template for .NET projects with grouped NuGet updates and GitHub Actions support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2 | |
| updates: | |
| # | |
| # NuGet dependencies | |
| # | |
| - package-ecosystem: "nuget" | |
| directory: "/" | |
| schedule: | |
| interval: weekly | |
| open-pull-requests-limit: 10 | |
| assignees: | |
| - "guibranco" | |
| reviewers: | |
| - "guibranco" | |
| labels: | |
| - "nuget" | |
| - "packages" | |
| - ".NET" | |
| - "dependencies" | |
| groups: | |
| # | |
| # Microsoft packages | |
| # | |
| microsoft: | |
| patterns: | |
| - "Microsoft.*" | |
| # | |
| # ASP.NET Core stack | |
| # | |
| aspnetcore: | |
| patterns: | |
| - "Microsoft.AspNetCore.*" | |
| # | |
| # Extensions ecosystem | |
| # | |
| extensions: | |
| patterns: | |
| - "Microsoft.Extensions.*" | |
| # | |
| # Test stack | |
| # | |
| testing: | |
| patterns: | |
| - "xunit*" | |
| - "FluentAssertions*" | |
| - "Moq*" | |
| - "coverlet*" | |
| - "Microsoft.NET.Test.Sdk" | |
| # | |
| # Logging stack | |
| # | |
| logging: | |
| patterns: | |
| - "Serilog*" | |
| - "NLog*" | |
| # | |
| # OpenTelemetry | |
| # | |
| telemetry: | |
| patterns: | |
| - "OpenTelemetry*" | |
| # | |
| # Azure SDK | |
| # | |
| azure: | |
| patterns: | |
| - "Azure.*" | |
| # | |
| # Everything else | |
| # | |
| dependencies: | |
| patterns: | |
| - "*" | |
| - package-ecosystem: "github-actions" | |
| directory: "/" | |
| schedule: | |
| interval: weekly | |
| open-pull-requests-limit: 5 | |
| assignees: | |
| - "guibranco" | |
| reviewers: | |
| - "guibranco" | |
| labels: | |
| - "github-actions" | |
| - "dependencies" | |
| groups: | |
| github-actions: | |
| patterns: | |
| - "*" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dependabot configuration template for modern .NET / C# repositories.
This setup reduces pull request noise by grouping related NuGet dependencies into logical update batches (Microsoft.*, ASP.NET Core, Extensions, Testing, Logging, Azure, etc.) instead of opening dozens of individual PRs.
It also includes GitHub Actions updates and sensible defaults for reviewers, labels, scheduling, and PR limits.
Useful for:
Highlights:
Designed as a reusable baseline template for production-grade repositories.