From ef14b9bbe7934b334ff3721674986049a0c07906 Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Tue, 26 Nov 2024 10:40:24 +0100 Subject: [PATCH] Use github token with correct permissions --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e6a6ca..847f4df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,10 @@ on: release: types: [created] +# Add this permissions block +permissions: + contents: write + jobs: releases-matrix: name: Release Go Binary @@ -22,7 +26,7 @@ jobs: - uses: wangyoucao577/go-release-action@v1.35 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