From c77818b28a143b97d6992c99a87da916a44ca28e Mon Sep 17 00:00:00 2001 From: Soim Date: Wed, 28 Oct 2026 12:37:00 +0900 Subject: [PATCH] fix(ci): use github.token for release workflows The stored TOKEN secret is rejected by the GitHub API, so release asset upload and changelog updates fail. --- .github/workflows/publish-release.yml | 6 +++--- .github/workflows/release-drafter-config.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 5b0aff6..584fd94 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -34,7 +34,7 @@ jobs: sed -i "s/^version = \".*\"/version = \"$new_version\"/" pyproject.toml - name: update changelog with gren env: - GREN_GITHUB_TOKEN: ${{ secrets.TOKEN }} + GREN_GITHUB_TOKEN: ${{ github.token }} run: | npm install github-release-notes@0.17.3 node_modules/.bin/gren changelog --override @@ -47,7 +47,7 @@ jobs: - name: Push changes uses: ad-m/github-push-action@v1.3.0 with: - github_token: ${{ secrets.TOKEN }} + github_token: ${{ github.token }} branch: main build: @@ -97,7 +97,7 @@ jobs: id: upload-release-asset uses: softprops/action-gh-release@v1 env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} + GITHUB_TOKEN: ${{ github.token }} with: files: ./${{ matrix.OUT_FILE_NAME}} deploy: diff --git a/.github/workflows/release-drafter-config.yml b/.github/workflows/release-drafter-config.yml index 2dd90c5..d156b5a 100644 --- a/.github/workflows/release-drafter-config.yml +++ b/.github/workflows/release-drafter-config.yml @@ -11,4 +11,4 @@ jobs: with: config-name: release-drafter-config.yml env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} + GITHUB_TOKEN: ${{ github.token }}