From f4bbddd0dd6794795ec4ac1f42767eb75b06025c Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Thu, 21 May 2026 05:25:36 +0000 Subject: [PATCH] fix: use GHCR_USERNAME and GHCR_TOKEN for GHCR login in Gitea Actions Gitea's GITHUB_TOKEN authenticates against git.farh.net, not ghcr.io. Use explicit GHCR_USERNAME and GHCR_TOKEN secrets instead. Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe1832b..8b92dfd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,8 +139,8 @@ jobs: uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_TOKEN }} - name: Extract metadata id: meta @@ -229,8 +229,8 @@ jobs: uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_TOKEN }} - name: Extract metadata id: meta @@ -317,8 +317,8 @@ jobs: uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_TOKEN }} - name: Extract metadata (API) id: meta @@ -405,8 +405,8 @@ jobs: uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_TOKEN }} - name: Extract metadata (auth) id: meta