From 98196e68b11ac03422fbdb331adbd494adcb942f Mon Sep 17 00:00:00 2001 From: "Casale, Robert" Date: Thu, 14 Sep 2023 16:47:01 -0400 Subject: [PATCH] feat(actions): add permissions to goreleaser, and switch to built-in GitHub Token This will hopefully fix the issue within the goreleaser GitHub Action error=docker images: failed to publish artifacts: failed to push docker.io/kconnectcli/kconnect:0.5.12-rc.1-amd64: exit status 1: denied: requested access to the resource is denied Signed-off-by: Casale, Robert --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 31079080..8f643b14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,8 @@ on: push: tags: - "*" - +permissions: + contents: write jobs: goreleaser: runs-on: ubuntu-latest @@ -39,4 +40,4 @@ jobs: version: latest args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GH_PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}