From 2cefae05461d4887a85f3efa33b0a9aa1d7e54db Mon Sep 17 00:00:00 2001 From: Jen Hamon Date: Thu, 5 Feb 2026 17:50:32 -0500 Subject: [PATCH] fix(ci): use github.token instead of secrets.GITHUB_TOKEN for gh CLI The gh CLI in GitHub Actions requires GH_TOKEN to be set to github.token rather than secrets.GITHUB_TOKEN. This was causing the release workflow to fail with exit code 4 when attempting to create draft releases. Fixes the error: "gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable." Co-authored-by: Cursor --- .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 a72e0c0..e0374b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -123,7 +123,7 @@ jobs: if: github.event.inputs.releaseMode == 'prod' shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ github.token }} run: | gh release create "v${{ steps.version-bump-prod.outputs.version }}" \ --draft \