Skip to content

ci(dependabot): auto-retarget dependabot PRs from main to Dev_new_gui (#11696) - #11724

Merged
mrveiss merged 1 commit into
Dev_new_guifrom
issue-11696
Jul 15, 2026
Merged

mrveiss merged 1 commit into
Dev_new_guifrom
issue-11696

Conversation

@mrveiss

@mrveiss mrveiss commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Closes #11696

Thinking Path

Dependabot security updates always open against the default branch (main) and ignore dependabot.yml target-branch — a documented GitHub limitation. Manual retargeting reverts on the next @dependabot rebase (observed on #11566). Owner decision on #11696: retarget the PRs (option 2 in the issue). A workflow that re-applies the retarget on every PR event, including synchronize, makes the retarget rebase-proof.

What Changed

  • New .github/workflows/dependabot-retarget.yml: on pull_request_target (opened/reopened/synchronize), if the PR author is dependabot[bot] and base is main, PATCH the base to Dev_new_gui. Comments once on open/reopen; on failure (e.g. Dev_new_gui already carries the bump → empty diff) it comments with the superseded-close instruction instead of failing silently.
  • Security: github-script API calls only — no run: shell interpolation of untrusted input, PR code never checked out, pull-requests: write is the only permission.

Verification

Model Used

Claude Fable 5

@github-actions

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

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