Skip to content

Commit 8afabf8

Browse files
committed
🤖 update release.yml to adjust permissions for contents and packages
Signed-off-by: cuisongliu <cuisongliu@qq.com>
1 parent 8b4a6ea commit 8afabf8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
jobs:
1111
goreleaser:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
packages: write
1316
steps:
1417
- name: Checkout
1518
uses: actions/checkout@v3
@@ -27,6 +30,6 @@ jobs:
2730
version: latest
2831
args: release --timeout=1h
2932
env:
30-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3134
VERSION: ${{ steps.prepare.outputs.tag_name }}
3235
USERNAME: ${{ github.repository_owner }}

0 commit comments

Comments
 (0)