Skip to content

Use correct tokens in release issue workflow #79300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

nikic
Copy link
Contributor

@nikic nikic commented Jan 24, 2024

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.

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.
@llvmbot
Copy link
Member

llvmbot commented Jan 24, 2024

@llvm/pr-subscribers-github-workflow

Author: Nikita Popov (nikic)

Changes

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 --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

Copy link
Collaborator

@tru tru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for working through all the issues with the move.

@nikic nikic merged commit f03a60d into llvm:main Jan 24, 2024
@nikic nikic deleted the fix-release-workflow-perms-2 branch January 24, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants