Use DBX PR app to create merge-up pull requests#1874
Merged
alcaeus merged 1 commit intomongodb:v2.2from Apr 16, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the merge-up GitHub Actions workflow to create merge-up pull requests using the DBX PR app authentication flow instead of a repository token/secret, aligning with the approach used elsewhere in the driver org.
Changes:
- Removes the workflow-level
GH_TOKENconfiguration tied toMERGE_UP_TOKEN. - Switches checkout to
mongodb-labs/drivers-github-tools/secure-checkout@v3using GitHub App credentials. - Adds explicit job permissions needed for OIDC/app auth and PR creation.
Comments suppressed due to low confidence (1)
.github/workflows/merge-up.yml:35
- The workflow no longer sets
GH_TOKEN/a PAT, but thealcaeus/automatic-merge-up-actionstep is not explicitly given an app token either. Unlessmongodb-labs/drivers-github-tools/secure-checkout@v3exports a token in an env var that this action consumes, PR creation may run with the defaultGITHUB_TOKEN(or fail) and may not meet the goal of using the DBX PR app. Consider explicitly wiring the generated app token into the merge-up action (via its supportedtoken/github_tokeninput or an env var) so authentication is unambiguous.
- name: Create pull request
id: create-pull-request
uses: alcaeus/automatic-merge-up-action@1.0.1
with:
ref: ${{ github.ref_name }}
branchNamePattern: 'v<major>.<minor>'
devBranchNamePattern: 'v<major>.x'
ignoredBranches: ${{ vars.IGNORED_MERGE_UP_BRANCHES }}
enableAutoMerge: true
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v2.2 #1874 +/- ##
============================================
- Coverage 87.99% 87.91% -0.09%
+ Complexity 3228 3208 -20
============================================
Files 428 428
Lines 6433 6390 -43
============================================
- Hits 5661 5618 -43
Misses 772 772
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
GromNaN
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As with mongodb/mongo-php-driver#1972, this change modifies the merge-up workflow to no longer rely on a token, but rather uses the DBX PR app to create pull requests.