From 87c3c098d4bd140b3c4c2deef02d146ac07b8098 Mon Sep 17 00:00:00 2001 From: Dijana Pavlovic Date: Thu, 1 Aug 2024 18:24:02 +0200 Subject: [PATCH] Use GH_PAT token for ghcr.io --- .github/workflows/publish-image.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 85b3094..0868374 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -8,8 +8,6 @@ on: jobs: build-and-publish: runs-on: ubuntu-latest - permissions: - contents: write steps: - name: Checkout code @@ -28,7 +26,7 @@ jobs: with: registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.GH_PAT }} - name: Build and push Docker image uses: docker/build-push-action@v6