Skip to content

Commit f03a60d

Browse files
authored
Use correct tokens in release issue workflow (llvm#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.
1 parent 380ac53 commit f03a60d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ jobs:
6060
printf "%s" "$COMMENT_BODY" |
6161
./llvm/utils/git/github-automation.py \
6262
--repo "$GITHUB_REPOSITORY" \
63-
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
63+
--token ${{ github.token }} \
6464
release-workflow \
65+
--branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
6566
--issue-number ${{ github.event.issue.number }} \
6667
auto
6768
@@ -91,7 +92,8 @@ jobs:
9192
printf "%s" "$COMMENT_BODY" |
9293
./llvm/utils/git/github-automation.py \
9394
--repo "$GITHUB_REPOSITORY" \
94-
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
95+
--token ${{ github.token }} \
9596
release-workflow \
97+
--branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
9698
--issue-number ${{ github.event.issue.number }} \
9799
auto

0 commit comments

Comments
 (0)