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