From 7ee3c8ff257ebd582d3b9eb5bd191564a099241e Mon Sep 17 00:00:00 2001 From: Thomas Pelletier Date: Sat, 1 Jan 2022 09:24:52 -0500 Subject: [PATCH] build: login to github repository --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c0cdc7..e0c2a8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,9 +14,6 @@ on: jobs: release: runs-on: ubuntu-latest - permissions: - contents: write - packages: write steps: - name: Checkout uses: actions/checkout@v2 @@ -26,6 +23,12 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.17 + - name: Login to GitHub Container Registry + 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: