Skip to content

Commit ba3e5e6

Browse files
committed
Improve backport job permissions
1 parent 43111bb commit ba3e5e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/backport.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
- labeled
77

88
permissions:
9-
actions: write
10-
contents: write
11-
pull-requests: write
9+
contents: read
1210

1311
jobs:
1412
backport:
1513
name: Backport
1614
runs-on: ubuntu-latest
15+
environment:
16+
name: Backport
1717
# Only react to merged PRs for security reasons.
1818
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
1919
if: >
@@ -27,4 +27,4 @@ jobs:
2727
steps:
2828
- uses: tibdex/backport@9565281eda0731b1d20c4025c43339fb0a23812e # v2.0.4
2929
with:
30-
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
github_token: ${{ secrets.BACKPORT_TOKEN }}

0 commit comments

Comments
 (0)