From c4741b021ed76020a6c3872a9fd7b879d220b6b5 Mon Sep 17 00:00:00 2001 From: Teppei Fukuda Date: Wed, 29 May 2024 11:11:02 +0400 Subject: [PATCH] ci: replace PAT with ORG_REPO_TOKEN (#6806) Signed-off-by: knqyf263 --- .github/workflows/release-please.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index ca7912f9068f..290cdce1c4ce 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -21,7 +21,7 @@ jobs: id: release uses: googleapis/release-please-action@v4 with: - token: ${{ secrets.PAT }} + token: ${{ secrets.ORG_REPO_TOKEN }} target-branch: ${{ github.ref_name }} manual-release-please: @@ -34,7 +34,7 @@ jobs: - name: Release Please run: | release-please release-pr --repo-url=${{ github.server_url }}/${{ github.repository }} \ - --token=${{ secrets.PAT }} \ + --token=${{ secrets.ORG_REPO_TOKEN }} \ --release-as=${{ github.event.inputs.version }} \ --target-branch=${{ github.ref_name }} @@ -55,7 +55,7 @@ jobs: if: ${{ steps.extract_info.outputs.version }} uses: actions/github-script@v7 with: - github-token: ${{ secrets.PAT }} + github-token: ${{ secrets.ORG_REPO_TOKEN }} script: | await github.rest.git.createRef({ owner: context.repo.owner, @@ -71,7 +71,7 @@ jobs: if: ${{ steps.extract_info.outputs.pr_number }} uses: actions/github-script@v7 with: - github-token: ${{ secrets.PAT }} + github-token: ${{ secrets.ORG_REPO_TOKEN }} script: | const prNumber = parseInt('${{ steps.extract_info.outputs.pr_number }}', 10); github.rest.issues.removeLabel({