Skip to content

Commit eac0a8b

Browse files
authored
build: explicit login and GitHub token (#161)
Should work according to goreleaser/goreleaser-action#261 (comment)
1 parent e14cee8 commit eac0a8b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/go-test-and-release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
tags:
99
- "*"
1010

11+
permissions:
12+
contents: write
13+
packages: write
14+
1115
jobs:
1216
go-test:
1317
runs-on: ubuntu-latest
@@ -44,10 +48,16 @@ jobs:
4448
# renovate: go-version
4549
go-version: 1.18.2
4650

51+
- uses: docker/login-action@v1
52+
with:
53+
registry: ghcr.io
54+
username: ${{ github.actor }}
55+
password: ${{ secrets.GITHUB_TOKEN }}
56+
4757
- name: Run GoReleaser
4858
uses: goreleaser/goreleaser-action@v2
4959
with:
5060
version: latest
5161
args: release --rm-dist
5262
env:
53-
GITHUB_TOKEN: ${{ secrets.EZ_BOT_TOKEN }}
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)