Skip to content

Commit

Permalink
fix(release): use the workflow permissions for pushing to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
tbckr committed Oct 2, 2023
1 parent 19410f8 commit 3a335d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ concurrency:
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/create-github-app-token@49ce228ea7cddec9f88dd09c5b7740dbac82d7ba # v1
id: generate_token
Expand All @@ -51,8 +53,6 @@ jobs:
token: ${{ steps.generate_token.outputs.token }}
release-type: go
package-name: sgpt
extra-files: |
internal/buildinfo/version.go
skip-github-release: false

# Checkout repo
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ steps.generate_token.outputs.token }}
password: ${{ secrets.GITHUB_TOKEN }}

# Release with goreleaser
- uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5
Expand Down

0 comments on commit 3a335d6

Please sign in to comment.