Skip to content

Commit ca25641

Browse files
authored
Backport PRs must be created with personal access tokens (#16276)
Motivation: When creating a PR using a workflow GITHUB_TOKEN, then no additional workflows are triggered. This means our CI build is not started on automatic backport PRs: https://docs.github.com/en/actions/concepts/security/github_token#when-github_token-triggers-workflow-runs Modification: Use a personal access token when creating the backport PR, instead of GITHUB_TOKEN. Result: Backport PRs should now have CI triggered.
1 parent c0c2c27 commit ca25641

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/backport-41.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
if: steps.cherry-pick.outcome == 'success'
6161
uses: actions/github-script@v8
6262
with:
63+
github-token: '${{ secrets.PAT_TOKEN_READ_WRITE_PR }}'
6364
script: |
6465
const { data: pr } = await github.rest.pulls.create({
6566
owner: context.repo.owner,

0 commit comments

Comments
 (0)