Skip to content

Commit

Permalink
feat(actions): add permissions to goreleaser, and switch to built-in …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
Gearheads committed Sep 14, 2023
1 parent a6ecbec commit 98196e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
tags:
- "*"

permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,4 +40,4 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 98196e6

Please sign in to comment.