Skip to content

ci: sync NuGet lock files on Dependabot PRs - #25

Merged
Synertry merged 1 commit into
mainfrom
ci/dependabot-lockfile-sync
Jun 13, 2026
Merged

ci: sync NuGet lock files on Dependabot PRs#25
Synertry merged 1 commit into
mainfrom
ci/dependabot-lockfile-sync

Conversation

@Synertry

Copy link
Copy Markdown
Owner

Summary

  • Add .github/workflows/dependabot-lockfiles.yml: on Dependabot PRs, restore the whole solution with --force-evaluate and commit the refreshed packages.lock.json files back through the GitHub API (createCommitOnBranch), which signs the commit (satisfies required_signatures) and re-triggers the PR checks.
  • Fixes the Dependabot transitive-lock drift (Dependabot does not update packages.lock.json for projects affected transitively via <ProjectReference> (Central Package Management + locked mode) dependabot/dependabot-core#13950): Dependabot refreshes only the directly-referencing project lock, leaving OpenTDBLookup.Tests CentralTransitive entries stale and failing locked-mode restore (NU1004). Keeps full lock coverage on both projects.
  • Restore only, no build or test in the write-capable job. Gated to dependabot[bot]; the PAT-authored commit re-runs CI under a non-Dependabot actor so the job does not re-trigger itself.

Dependabot regenerates only the directly-referencing project lock on a NuGet bump, leaving the test project CentralTransitive entries stale and failing locked-mode restore (NU1004). This workflow restores the whole solution on Dependabot PRs and commits the refreshed locks back through the GitHub API, so the commit is GitHub-signed and re-triggers the PR checks.

Signed-off-by: Synertry <60792595+Synertry@users.noreply.github.com>
@github-actions github-actions Bot added area/CI GitHub workflows, Dependabot, labelers, scripts type/ci Changes to CI configuration files and scripts size/s Small diff (< 150 lines, 10 files) status/pr-test-passed Lightweight PR test workflow passed (granted by pr-test.yaml) labels Jun 13, 2026
@Synertry
Synertry merged commit f26479c into main Jun 13, 2026
8 checks passed
@github-actions
github-actions Bot deleted the ci/dependabot-lockfile-sync branch June 13, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/CI GitHub workflows, Dependabot, labelers, scripts size/s Small diff (< 150 lines, 10 files) status/pr-test-passed Lightweight PR test workflow passed (granted by pr-test.yaml) type/ci Changes to CI configuration files and scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant