chore: update GitHub Actions workflows for permissions and token usage

- Changed permissions in auto-tag.yml and release.yml to 'write-all' for broader access.
- Updated GITHUB_TOKEN to use RELEASE_TOKEN in both workflows for enhanced security.
- Streamlined the workflows by removing redundant permission specifications.
This commit is contained in:
煎饼果子卷鲨鱼辣椒
2024-12-30 18:07:39 +08:00
parent fa53723283
commit dff58fb4fb
2 changed files with 6 additions and 16 deletions

View File

@@ -6,11 +6,7 @@ on:
tags:
- "v*"
permissions:
contents: write
packages: write
issues: write
pull-requests: write
permissions: write-all
jobs:
goreleaser:
@@ -51,5 +47,5 @@ jobs:
version: v1.21.2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}