From 1da0ddf48ceef053a50b23c8fe28cef33eea89cb Mon Sep 17 00:00:00 2001 From: k-chrispens <33336327+k-chrispens@users.noreply.github.com> Date: Fri, 20 Mar 2026 17:27:08 -0700 Subject: [PATCH] ci(release): use fine-grained PAT for branch protection bypass --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51fee3a3..f6e953da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,7 @@ jobs: ref: ${{ github.ref_name }} fetch-depth: 0 fetch-tags: true + token: ${{ secrets.RELEASE_TOKEN }} - run: git reset --hard ${{ github.sha }} @@ -27,7 +28,7 @@ jobs: id: release uses: python-semantic-release/python-semantic-release@v10.5.3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.RELEASE_TOKEN }} git_committer_name: "github-actions" git_committer_email: "actions@users.noreply.github.com" @@ -35,5 +36,5 @@ jobs: if: steps.release.outputs.released == 'true' uses: python-semantic-release/publish-action@v10.5.3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.RELEASE_TOKEN }} tag: ${{ steps.release.outputs.tag }}