[llvm] Add necessary permissions to release issue workflow (PR #79272)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 02:47:28 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Nikita Popov (nikic)
<details>
<summary>Changes</summary>
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 https://github.com/llvm/llvm-project/issues/79253#issuecomment-1907850027.
---
Full diff: https://github.com/llvm/llvm-project/pull/79272.diff
1 Files Affected:
- (modified) .github/workflows/issue-release-workflow.yml (+5)
``````````diff
diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml
index 1f45799af169547..3c089c5465472fc 100644
--- a/.github/workflows/issue-release-workflow.yml
+++ b/.github/workflows/issue-release-workflow.yml
@@ -33,6 +33,8 @@ jobs:
backport-commits:
name: Backport Commits
runs-on: ubuntu-latest
+ permissions:
+ issues: write
if: >-
(github.repository == 'llvm/llvm-project') &&
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
@@ -66,6 +68,9 @@ jobs:
create-pull-request:
name: Create Pull Request
runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
if: >-
(github.repository == 'llvm/llvm-project') &&
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
``````````
</details>
https://github.com/llvm/llvm-project/pull/79272
More information about the llvm-commits
mailing list