Skip to content

Commit

Permalink
build: explicit login and GitHub token (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer authored May 15, 2022
1 parent e14cee8 commit eac0a8b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/go-test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
tags:
- "*"

permissions:
contents: write
packages: write

jobs:
go-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,10 +48,16 @@ jobs:
# renovate: go-version
go-version: 1.18.2

- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.EZ_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit eac0a8b

Please sign in to comment.