Skip to content

Dependabot: really keep the .NET 8 base images, and group the updates - #28

Merged
AmirGHTo merged 1 commit into
mainfrom
claude/confident-knuth-abb7sr
Oct 14, 2026
Merged

AmirGHTo merged 1 commit into
mainfrom
claude/confident-knuth-abb7sr

Conversation

@AmirGHTo

Copy link
Copy Markdown
Owner

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). My ignore rule was meant to prevent exactly this.

Cause (my bug)

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.

Fix (.github/dependabot.yml only)

  • 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.
  • Fewer PRs: one grouped PR for all six Dockerfiles (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

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vuhzoey6h5V9wPPVFuR7ME


Generated by Claude Code

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
@AmirGHTo
AmirGHTo merged commit 46e6ba7 into main Oct 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants