Skip to content

ci(deps): stop Dependabot proposing unmergeable and split-version bumps - #76

Merged
bgard68 merged 1 commit into
mainfrom
fix/dependabot-grouping-and-openapi-constraint
Aug 24, 2026
Merged

ci(deps): stop Dependabot proposing unmergeable and split-version bumps#76
bgard68 merged 1 commit into
mainfrom
fix/dependabot-grouping-and-openapi-constraint

Conversation

@bgard68

@bgard68 bgard68 commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Three open Dependabot PRs cannot go green. Two distinct causes, both fixed here in .github/dependabot.yml.

1. Microsoft.OpenApi 2.12.0 → 3.10.2 (#75) can never merge

Microsoft.AspNetCore.OpenApi 10.0.11 constrains Microsoft.OpenApi to >= 2.7.5 && < 3.0.0. The proposed 3.10.2 resolves outside that constraint and raises NU1608, which is an error rather than a warning because Directory.Build.props sets TreatWarningsAsErrors.

Reproduced locally:

error NU1608: Warning As Error: Detected package version outside of dependency constraint:
Microsoft.AspNetCore.OpenApi 10.0.11 requires Microsoft.OpenApi (>= 2.7.5 && < 3.0.0)
but version Microsoft.OpenApi 3.10.2 was resolved.

No 3.x can merge until ASP.NET Core itself depends on Microsoft.OpenApi 3.x. Major updates are now ignored for that one package; 2.x patches still flow, which is what the explicit pin exists for (GHSA-v5pm-xwqc-g5wc).

2. Co-versioned actions were split across PRs (#72, #69 — and latent in #70, #68)

codeql-action/init and codeql-action/analyze are pinned to a single SHA, but Dependabot raised one PR per sub-action. Either one alone lands a version mismatch that only fails at run time:

Loaded a configuration file for version 4.37.8, but running version 4.37.7

The same hazard is latent in #70 / #68: test-suite.yml uploads artifacts and later downloads them, so upload-artifact and download-artifact must stay on the same major. Merging one without the other breaks the handoff.

Both families now have explicit groups placed before the actions-all catch-all, since groups match in definition order.

Verification

  • dotnet build -c Release — succeeded, 0 warnings, 0 errors
  • dotnet test against postgres:16-alpine matching the CI service — 348 passed, 0 failed (295 unit + 53 integration)
  • Bumping to 3.10.2 locally reproduces NU1608; reverted
  • .github/dependabot.yml parses, and groups resolve in the intended order

Follow-up (not in this PR)

Close #75, #72 and #69 — they cannot go green as proposed. Dependabot will re-raise the CodeQL bump as one grouped PR on the next run. #70 and #68 should be merged together or not at all.

Three open Dependabot PRs could never go green, for two distinct reasons.

Microsoft.OpenApi (#75): Microsoft.AspNetCore.OpenApi 10.x constrains it to
>=2.7.5 <3.0.0, so the proposed 3.10.2 resolves outside the constraint and
raises NU1608 — an error here, not a warning, because Directory.Build.props
sets TreatWarningsAsErrors. No 3.x can merge until ASP.NET Core moves first.
Ignore major updates for that package only; 2.x patches still flow, which is
what the explicit pin exists for (GHSA-v5pm-xwqc-g5wc).

codeql-action (#72, #69): init and analyze are pinned to a single SHA, and
Dependabot raised one PR per sub-action. Either alone lands a mismatch that
fails at run time with "Loaded a configuration file for version X, but
running version Y". The same hazard sits in #70/#68 — test-suite.yml uploads
and downloads artifacts, so the two actions must share a major.

Group both families ahead of the actions-all catch-all so co-versioned
actions always travel in one PR. Groups match in definition order.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@bgard68
bgard68 merged commit 5812cae into main Aug 24, 2026
7 checks passed
@bgard68
bgard68 deleted the fix/dependabot-grouping-and-openapi-constraint branch August 24, 2026 12:09
bgard68 added a commit that referenced this pull request Aug 24, 2026
upload-artifact 4.6.2 -> 7.0.1 and download-artifact 4.3.0 -> 8.0.1.

Dependabot raised these as #70 and #68. test-suite.yml uploads coverage
artifacts in two jobs and downloads them in a third, and the artifact
backend is not compatible across these majors — merging either PR alone
would leave main with a broken upload/download handoff until the other
landed. Combining them keeps main consistent at every commit.

The dependabot.yml grouping added in #76 makes this automatic from the
next run; this commit clears the pair already in flight.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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.

1 participant