From c429a883ad7d22b3f65017cc729ea21772ad5801 Mon Sep 17 00:00:00 2001 From: real-zony Date: Mon, 9 Nov 2026 19:15:59 -0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BD=BF=E7=94=A8=E5=86=85=E7=BD=AE?= =?UTF-8?q?=20token=20=E4=BF=AE=E5=A4=8D=20Release=20=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E9=89=B4=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 4 +++- versions/release.md | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index fec8070..252ec25 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -137,6 +137,8 @@ jobs: # Release Job - 合并所有平台的构建产物 release: if: github.event_name == 'push' + permissions: + contents: write needs: [build-linux-windows, build-macos, build-desktop] runs-on: ubuntu-latest steps: @@ -161,7 +163,7 @@ jobs: uses: ncipollo/release-action@v1 with: artifacts: "./TempFiles/*.zip" - token: ${{ secrets.GITHUBACTIONS }} + token: ${{ github.token }} tag: ZonyLrcToolsX_Alpha.${{ needs.build-linux-windows.outputs.version }} commit: dev bodyFile: ./versions/release.md diff --git a/versions/release.md b/versions/release.md index 17476f7..71aebf0 100644 --- a/versions/release.md +++ b/versions/release.md @@ -14,4 +14,5 @@ Fixed Bugs: - [#167] Handle macOS code signing issues. (处理 macOS 代码签名问题。) - [#172] Correct KGG/KGM detection, QMC2 map decoding, unpadded ekey decoding and concurrent output handling. - [#172] Keep decrypted key databases in memory; prevent canceled downloads from publishing partial files. -- [#172] Fix QR login races, stale scan results, desktop task threading and trimmed session serialization. \ No newline at end of file +- [#172] Fix QR login races, stale scan results, desktop task threading and trimmed session serialization. +- Fix release authentication by using the built-in GitHub token with `contents: write` permission scoped to the release job. \ No newline at end of file