Skip to content

feat: add Dependabot PR head SHA guard before auto-merge#34

Merged
Pigbibi merged 1 commit into
mainfrom
feat/dependabot-head-sha-guard
Jun 27, 2026
Merged

feat: add Dependabot PR head SHA guard before auto-merge#34
Pigbibi merged 1 commit into
mainfrom
feat/dependabot-head-sha-guard

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Align dependabot_auto_merge.yml with gold standard from UsEquitySnapshotPipelines
  • Resolve open Dependabot PR via headRefOid and skip merge when CI head SHA differs
  • Use gh pr merge --match-head-commit for safe auto-merge
  • Trigger on CI workflow completion

Test plan

  • Dependabot PR opens and CI passes
  • Auto-merge runs only when PR head matches completed CI SHA

Require PR headRefOid to match the completed CI workflow_run head_sha
and pass --match-head-commit to gh pr merge to prevent stale merges.
@Pigbibi Pigbibi merged commit a11a54e into main Jun 27, 2026
@Pigbibi Pigbibi deleted the feat/dependabot-head-sha-guard branch June 27, 2026 08:53
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