From 4c9142308f3beeb86f898509e3502ebf40b05339 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Wed, 12 Nov 2025 19:16:09 +0100 Subject: [PATCH] fix: use app token for github-script run (#23852) --- .github/workflows/release-pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 55babd7acf..68ce4cd1dc 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -60,6 +60,7 @@ jobs: OUTLINE_API_KEY: ${{ secrets.OUTLINE_API_KEY }} NEXT_VERSION: ${{ steps.bump-type.outputs.next }} with: + github-token: ${{ steps.generate-token.outputs.token }} script: | const outlineKey = process.env.OUTLINE_API_KEY; const parentDocumentId = 'da856355-0844-43df-bd71-f8edce5382d9' @@ -128,7 +129,7 @@ jobs: const releaseNotesResponse = await github.rest.repos.generateReleaseNotes({ owner: context.repo.owner, repo: context.repo.repo, - tag_name: `v${process.env.NEXT_VERSION}`, + tag_name: `${process.env.NEXT_VERSION}`, }); const githubNotes = releaseNotesResponse.data.body;