Skip to content

Commit

Permalink
Use github token with correct permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
academo committed Nov 26, 2024
1 parent d022ed7 commit ef14b9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ on:
release:
types: [created]

# Add this permissions block
permissions:
contents: write

jobs:
releases-matrix:
name: Release Go Binary
Expand All @@ -22,7 +26,7 @@ jobs:
- uses: wangyoucao577/[email protected]
with:
pre_command: export CGO_ENABLED=0
github_token: ${{ secrets.DEPLOY_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.23.3
Expand Down

0 comments on commit ef14b9b

Please sign in to comment.