From 523499ba9fdb067cef692eed6fff7cdcab93f291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=94=E7=84=B0=E9=98=B3?= <346765799@qq.com> Date: Thu, 30 Oct 2025 15:29:49 +0800 Subject: [PATCH] Add permissions and token to release workflow --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d04caea..ff79b57 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,9 @@ on: - 'v*.*.*' workflow_dispatch: +permissions: + contents: write + jobs: build: runs-on: ubuntu-latest @@ -58,6 +61,7 @@ jobs: - name: Create GitHub Release uses: softprops/action-gh-release@v1 with: + token: ${{ secrets.GITHUB_TOKEN }} tag_name: ${{ github.ref_name }} name: ${{ github.ref_name }} draft: false