Skip to content

Commit 27a0d7b

Browse files
authored
Use DBX PR app to create merge-up pull requests (#1972)
1 parent 5726e85 commit 27a0d7b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/merge-up.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,24 @@ on:
55
branches:
66
- "v[0-9]+.[0-9x]+"
77

8-
env:
9-
GH_TOKEN: ${{ secrets.MERGE_UP_TOKEN }}
10-
118
jobs:
129
merge-up:
1310
name: Create merge up pull request
1411
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
contents: write
15+
pull-requests: write
1516

1617
steps:
1718
- name: Checkout
1819
id: checkout
19-
uses: actions/checkout@v6
20+
uses: mongodb-labs/drivers-github-tools/secure-checkout@v3
2021
with:
21-
# fetch-depth 0 is required to fetch all branches, not just the branch being built
22+
app_id: ${{ vars.PR_APP_ID }}
23+
private_key: ${{ secrets.PR_APP_PRIVATE_KEY }}
24+
submodules: true
2225
fetch-depth: 0
23-
token: ${{ secrets.MERGE_UP_TOKEN }}
2426

2527
- name: Create pull request
2628
id: create-pull-request

0 commit comments

Comments
 (0)