[llvm] Use correct tokens in release issue workflow (PR #79300)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 06:59:45 PST 2024


https://github.com/nikic created https://github.com/llvm/llvm-project/pull/79300

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.

>From 8a83a9498d8da622b578714cff0c69d3c5c102f9 Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov at redhat.com>
Date: Wed, 24 Jan 2024 15:56:39 +0100
Subject: [PATCH] Use correct tokens in release workflow

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.
---
 .github/workflows/issue-release-workflow.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml
index 3c089c5465472fc..17209ec055f858e 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



More information about the llvm-commits mailing list