Skip to content

Commit b4bc6d9

Browse files
authored
Backport Auth (#2936)
1 parent ccc68c5 commit b4bc6d9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/pr-backport-autotrigger.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: Backport on Merge
22

33
on:
44
pull_request:
5-
types: [closed]
5+
types: [closed] # Later we check for merge so only PRs that go in can get backported
6+
7+
permissions:
8+
contents: write
69

710
jobs:
811
backport:
@@ -16,8 +19,9 @@ jobs:
1619

1720
- name: Set up Git
1821
run: |
19-
git config user.name "github-actions[bot]"
20-
git config user.email "github-actions[bot]@users.noreply.github.com"
22+
git config --global user.name "github-actions[bot]"
23+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
24+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
2125
2226
- name: Check for Backport Checkbox
2327
id: checkbox-check

0 commit comments

Comments
 (0)