Skip to content

Pass a merge token to the Dependabot auto-merge - #721

Merged
nelsonkopliku merged 1 commit into
mainfrom
pass-dependabot-merge-token
Nov 2, 2026
Merged

nelsonkopliku merged 1 commit into
mainfrom
pass-dependabot-merge-token

Conversation

@nelsonkopliku

@nelsonkopliku nelsonkopliku commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Pins the Dependabot auto-merge workflow to trento-project/.github v1.12.0, which includes trento-project/.github#55, and passes the TRENTOBOT_GH_PAT Dependabot secret as gh_token.

With GITHUB_TOKEN, a Dependabot merge starts no workflow run on main. Auto-merge also fails for a PR that changes workflow files after main changed the same files. With the token, the merge is done by the user of the token, so the push to main starts the workflows.

Needs the TRENTOBOT_GH_PAT Dependabot secret. Without it, the workflow falls back to GITHUB_TOKEN, as today.

Pins the Dependabot auto-merge workflow to trento-project/.github v1.12.0, and passes the `TRENTOBOT_GH_PAT` Dependabot secret as `gh_token`.

With `GITHUB_TOKEN`, a Dependabot merge starts no workflow run on `main`. Auto-merge also fails for a PR that changes workflow files after `main` changed the same files. With the token, the merge is done by the user of the token, so the push to `main` starts the workflows.

Needs the `TRENTOBOT_GH_PAT` Dependabot secret. Without it, the workflow falls back to `GITHUB_TOKEN`, as today.
@nelsonkopliku nelsonkopliku added ci enhancement New feature or request labels Nov 2, 2026
@nelsonkopliku
nelsonkopliku requested a balanced review from Copilot November 2, 2026 10:39
@nelsonkopliku nelsonkopliku self-assigned this Nov 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Dependabot auto-merge token update.

No open issues 🎉

What changed in this PR

Updates Dependabot auto-merge to use a dedicated merge token so merges can trigger workflows on main and handle workflow-file changes.

Changes:

  • Pins the reusable auto-merge workflow to the commit for v1.12.0.
  • Passes the TRENTOBOT_GH_PAT Dependabot secret as gh_token, with the described fallback to GITHUB_TOKEN when unavailable.
File Description
.github/​workflows/​ci.yaml Updates the auto-merge workflow pin and forwards the merge token.

Review effort: Balanced

@arbulu89 arbulu89 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
@nelsonkopliku from my side, feel free to "force merge" without approval the other repositories. No need to wait for review for all of them

@nelsonkopliku
nelsonkopliku merged commit 20bef87 into main Nov 2, 2026
10 checks passed
@nelsonkopliku
nelsonkopliku deleted the pass-dependabot-merge-token branch November 2, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

3 participants