Repository navigation
Dependabot: really keep the .NET 8 base images, and group the updates - #28
Merged
Merged
Conversation
The first Dependabot run after step 7 opened 19 pull requests, twelve of them
proposing to bump every service's Dockerfile from the .NET 8.0 SDK / ASP.NET
images to 10.0. That bump would break the build (the services target net8.0)
and my ignore rule was meant to prevent exactly this.
Cause: the rule named the dependency "mcr.microsoft.com/dotnet/*", but Dependabot
calls these images "dotnet/aspnet" and "dotnet/sdk" - without the registry
prefix - so the pattern matched nothing. It is now "dotnet/*" with the same
"ignore semver-major" intent, and the comment says why the prefix must not be
there. Patch and minor updates of the 8.0 images still come through.
The volume is reduced as well:
- Docker: one grouped pull request ("dotnet-images") for all six Dockerfiles
instead of two per service.
- GitHub Actions: one grouped pull request for all actions instead of one per
action.
NuGet keeps its existing groups (OpenTelemetry, Serilog, MassTransit, test
tooling).
Only the Dependabot configuration changes; the file still parses (checked), and
the groups/ignore keys follow the documented schema. Dependabot reports config
problems on the repository's Dependabot page, so look there after merging.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vuhzoey6h5V9wPPVFuR7ME
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What happened
The first Dependabot run after step 7 opened 19 pull requests. Twelve (#14–#25) propose bumping every service's Dockerfile from the .NET 8.0 SDK / ASP.NET images to 10.0 — that would break the build (the services target
net8.0). Myignorerule was meant to prevent exactly this.Cause (my bug)
The rule named the dependency
mcr.microsoft.com/dotnet/*, but Dependabot calls these imagesdotnet/aspnetanddotnet/sdk— without the registry prefix — so the pattern matched nothing.Fix (
.github/dependabot.ymlonly)ignore: dotnet/*for major bumps (patch/minor updates of the 8.0 images still come through), with a comment explaining why the prefix must not be there.dotnet-images) and one for all GitHub Actions (github-actions). NuGet keeps its existing groups.The file parses and follows the documented schema; Dependabot shows config problems on the repository's Insights → Dependency graph → Dependabot page, so look there after merging.
About the 19 open Dependabot PRs
ci.yml).🤖 Generated with Claude Code
https://claude.ai/code/session_01Vuhzoey6h5V9wPPVFuR7ME
Generated by Claude Code