Skip to content

⚙️ Support optional PAT for rebase push to bypass branch rulesets#4

Merged
aquarion merged 1 commit into
mainfrom
fix/rebase-pat-support
Apr 30, 2026
Merged

⚙️ Support optional PAT for rebase push to bypass branch rulesets#4
aquarion merged 1 commit into
mainfrom
fix/rebase-pat-support

Conversation

@aquarion
Copy link
Copy Markdown
Member

Summary

  • Adds an optional REBASE_TOKEN secret to the auto-rebase-dependabot workflow
  • Uses it for the actions/checkout token so the subsequent push authenticates with the PAT
  • Falls back to github.token if not provided, so other consumers are unaffected

Why

Repos with branch rulesets requiring status checks on dependabot-updates cannot be pushed to by github-actions[bot] after a rebase, because the rebased commits haven't had CI run against them yet. A PAT belonging to an admin (with ruleset bypass) unblocks the push while leaving the PR merge status check requirement intact.

Test plan

  • Merge this first, then merge the consumer repo change that passes REBASE_TOKEN
  • Add REBASE_TOKEN secret to the consumer repo
  • Trigger the rebase workflow manually and confirm the push succeeds

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aquarion aquarion marked this pull request as ready for review April 30, 2026 19:23
@aquarion aquarion merged commit 69865a9 into main Apr 30, 2026
1 check failed
@aquarion aquarion deleted the fix/rebase-pat-support branch April 30, 2026 19:23
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