From 1c5dd0358a099c502963132013b5995affe826db Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Mon, 29 Mar 2021 13:14:51 +0200 Subject: [PATCH] Use `GITHUB_TOKEN` for publishing images to GHCR --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab56cb38..41b82928 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,9 +28,9 @@ jobs: . - name: Docker login - env: - CR_PAT: ${{ secrets.CR_PAT }} - run: docker login -u $GITHUB_ACTOR -p $CR_PAT ghcr.io + run: >- + echo "${{ secrets.GITHUB_TOKEN }}" + | docker login -u "${{ github.actor }}" --password-stdin - name: Push image to GitHub run: |