Skip to content

Commit e82d6e4

Browse files
committed
Update GitHub Actions release workflow to enhance permissions and token usage
- Added write permissions for contents in the release job to ensure proper artifact handling. - Updated the token usage in the release step for improved clarity and consistency. These changes improve the reliability of the release process in the GitHub Actions workflow.
1 parent a8d8920 commit e82d6e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ jobs:
783783
name: Publish Release
784784
needs: [get-version, build-linux, build-windows, build-macos]
785785
runs-on: ubuntu-latest
786+
permissions:
787+
contents: write
786788
steps:
787789
- name: Download Linux artifacts
788790
uses: actions/download-artifact@v4
@@ -1094,5 +1096,4 @@ jobs:
10941096
draft: false
10951097
prerelease: false
10961098
fail_on_unmatched_files: false
1097-
env:
1098-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1099+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)