[llvm] Use correct tokens in release issue workflow (PR #79300)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 07:00:15 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Nikita Popov (nikic)
<details>
<summary>Changes</summary>
We should use the normal github.token for interacting with issues/PRs on the repo, and separately pass the `--branch-repo-token` for creating the branch in the llvmbot repo.
---
Full diff: https://github.com/llvm/llvm-project/pull/79300.diff
1 Files Affected:
- (modified) .github/workflows/issue-release-workflow.yml (+4-2)
``````````diff
diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml
index 3c089c5465472f..17209ec055f858 100644
--- a/.github/workflows/issue-release-workflow.yml
+++ b/.github/workflows/issue-release-workflow.yml
@@ -60,8 +60,9 @@ jobs:
printf "%s" "$COMMENT_BODY" |
./llvm/utils/git/github-automation.py \
--repo "$GITHUB_REPOSITORY" \
- --token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
+ --token ${{ github.token }} \
release-workflow \
+ --branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
--issue-number ${{ github.event.issue.number }} \
auto
@@ -91,7 +92,8 @@ jobs:
printf "%s" "$COMMENT_BODY" |
./llvm/utils/git/github-automation.py \
--repo "$GITHUB_REPOSITORY" \
- --token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
+ --token ${{ github.token }} \
release-workflow \
+ --branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
--issue-number ${{ github.event.issue.number }} \
auto
``````````
</details>
https://github.com/llvm/llvm-project/pull/79300
More information about the llvm-commits
mailing list