Skip to content

Commit a6f8d6a

Browse files
authored
Use custom Github App to authenticate backport job (#2751)
1 parent fe5bb6c commit a6f8d6a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/backport.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
)
2626
)
2727
steps:
28+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
29+
id: app-token
30+
with:
31+
app-id: ${{ vars.APP_ID }}
32+
private-key: ${{ secrets.PRIVATE_KEY }}
33+
permission-contents: write # push branch to Github
34+
permission-pull-requests: write # create PR / add comment for manual backport
35+
permission-workflows: write # modify files in .github/workflows
2836
- uses: tibdex/backport@9565281eda0731b1d20c4025c43339fb0a23812e # v2.0.4
2937
with:
30-
github_token: ${{ secrets.BACKPORT_TOKEN }}
38+
github_token: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)