From 08405aceb0b94bd552d00164a0b70e484e844c0b Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Wed, 24 Apr 2024 19:19:50 +0200 Subject: [PATCH] Fix go release gha token (#79) --- .github/workflows/shared-go-auto-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/shared-go-auto-release.yml b/.github/workflows/shared-go-auto-release.yml index 86e7bd17..d8be6858 100644 --- a/.github/workflows/shared-go-auto-release.yml +++ b/.github/workflows/shared-go-auto-release.yml @@ -59,8 +59,7 @@ on: description: Tag exists so skip new release issue value: ${{ jobs.publish.outputs.exists }} -permissions: - content: read +permissions: {} jobs: draft: @@ -91,6 +90,7 @@ jobs: uses: actions/checkout@v4 with: path: source + token: ${{ steps.github-app.outputs.token }} - name: Unshallow working-directory: source @@ -138,6 +138,7 @@ jobs: .github/goreleaser.yml sparse-checkout-cone-mode: false ref: main + token: ${{ steps.github-app.outputs.token }} - name: Go releaser config working-directory: source