Skip to content

Commit

Permalink
merge: #10670
Browse files Browse the repository at this point in the history
10670: Use PAT as checkout token in backport-action workflow r=korthout a=korthout

## Description

<!-- Please explain the changes you made here. -->

In order to allow the backport-action to backport accepted changes to workflows, we need to provide the `workflow` permission to the token used in the git checkout.

The PAT used as `github_token` has this permission. By using the same PAT as the github_token, we also make sure that the git commits are no longer produced by `github-action` but by `backport-action` itself.

For more details, see: https://github.com/orgs/community/discussions/27072#discussioncomment-3254515

## Related issues

<!-- Which issues are closed by this PR or are related -->

relates to #10666



Co-authored-by: Nico Korthout <korthout@users.noreply.github.com>
  • Loading branch information
zeebe-bors-camunda[bot] and korthout committed Oct 11, 2022
2 parents 82a96c2 + bd11a83 commit 914206d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
)
steps:
- uses: actions/checkout@v3
with:
# Token for git actions, e.g. git push
token: ${{ secrets.BACKPORT_ACTION_PAT }}
- name: Create backport PRs
uses: zeebe-io/backport-action@v0.0.8
with:
Expand Down

0 comments on commit 914206d

Please sign in to comment.