From ad29dfe6511f6fc30cf54461896ab8156e523504 Mon Sep 17 00:00:00 2001 From: Kazuki Chigita Date: Sat, 21 Mar 2026 23:34:15 +0900 Subject: [PATCH] Fix release workflow permissions for asset upload Add contents: write permission so GITHUB_TOKEN can upload assets to the release. Also remove redundant env GITHUB_TOKEN block as v2 uses the default token automatically. Co-Authored-By: Claude Opus 4.6 (1M context) --- .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 eb1d907..83bad4c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: release: types: [created] +permissions: + contents: write + jobs: build-and-release: runs-on: macos-15 @@ -30,5 +33,3 @@ jobs: with: files: | xpbc-macos.artifactbundle.zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}