From 5412f39b848e9a8314220e4caa62a19eca7f8bac Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 25 May 2026 21:08:48 +0900 Subject: [PATCH] Use PAT in release workflow Releases created with the default GITHUB_TOKEN do not trigger other workflows (anti-recursion). Winget workflow therefore did not fire on v0.73.1. Switch to RELEASE_PAT (registered in the `release` environment) so the release is authored by the user. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 717ce20c..8838be17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,7 +68,7 @@ jobs: && 'release --clean --release-notes tmp/release-note' || 'release --snapshot --clean --skip=publish' }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }} MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }} MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }} MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}