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