From 18279d2b11ff62d9a8d8096a894688509198aa40 Mon Sep 17 00:00:00 2001 From: mcaulifn <16712138+mcaulifn@users.noreply.github.com> Date: Wed, 2 Dec 2026 09:45:09 -0500 Subject: [PATCH] fix(ci): release with GITHUB_TOKEN instead of an expired PAT The Release workflow authenticated semantic-release with a personal access token that has expired, so every release run on main fails. Switch it to the built-in GITHUB_TOKEN and grant the job the contents, issues and pull-requests write permissions semantic-release needs. A release created with GITHUB_TOKEN does not trigger other workflows, so publish.yaml would no longer attach proxy-lambda.zip to new releases. The release job now builds the Lambda zip before running semantic-release, and @semantic-release/github uploads it as the release asset already configured in .releaserc.yaml. The job also exposes new_release_published and new_release_git_tag as outputs. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/release.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e2f9e5b..69f9ab2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,6 +8,13 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write + issues: write + pull-requests: write + outputs: + new_release_published: ${{ steps.semantic.outputs.new_release_published }} + new_release_git_tag: ${{ steps.semantic.outputs.new_release_git_tag }} steps: - name: Checkout uses: actions/checkout@v7.0.1 @@ -20,7 +27,20 @@ jobs: - name: Install run: bun install + # A release created with GITHUB_TOKEN does not trigger publish.yaml, so the + # Lambda zip is built here and uploaded by @semantic-release/github, which + # lists proxy-lambda.zip as a release asset in .releaserc.yaml. + - name: Build + run: bun run build + + - name: Inject Mozilla Cert Bundles + run: curl https://curl.se/ca/cacert.pem -o build/public-certs.pem + + - name: Zip Lambda + run: bun run package + - name: Semantic Release + id: semantic uses: cycjimmy/semantic-release-action@v8.1.4 env: - GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}