Skip to content

Commit 5db2e58

Browse files
authored
Add necessary permissions to release issue workflow (#79272)
The `/cherry-pick` command needs `issues: write` to post a comment on the issue. The `/branch` command also posts a comment, and also needs `pull-requests: write` to open a PR. This should fix the failure encountered at #79253 (comment).
1 parent 03a9f07 commit 5db2e58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/issue-release-workflow.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
backport-commits:
3434
name: Backport Commits
3535
runs-on: ubuntu-latest
36+
permissions:
37+
issues: write
3638
if: >-
3739
(github.repository == 'llvm/llvm-project') &&
3840
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
@@ -66,6 +68,9 @@ jobs:
6668
create-pull-request:
6769
name: Create Pull Request
6870
runs-on: ubuntu-latest
71+
permissions:
72+
issues: write
73+
pull-requests: write
6974
if: >-
7075
(github.repository == 'llvm/llvm-project') &&
7176
!startswith(github.event.comment.body, '<!--IGNORE-->') &&

0 commit comments

Comments
 (0)