From 740267897dacfed014949d8f2516ad103d0ec675 Mon Sep 17 00:00:00 2001 From: Rogee Date: Wed, 26 Aug 2026 12:02:37 +0800 Subject: [PATCH] ci: use Gitea PAT for package push Co-authored-by: multica-agent --- .github/workflows/bridge-proxy.yml | 4 ++-- .github/workflows/docker-publish.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bridge-proxy.yml b/.github/workflows/bridge-proxy.yml index 616dfb1..464a821 100644 --- a/.github/workflows/bridge-proxy.yml +++ b/.github/workflows/bridge-proxy.yml @@ -51,8 +51,8 @@ jobs: uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ github.server_url == 'https://github.com' && github.actor || github.repository_owner }} + password: ${{ github.server_url == 'https://github.com' && secrets.GITHUB_TOKEN || secrets.PACKAGE_TOKEN }} - name: Extract metadata id: meta diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4604b4b..2028cf6 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -33,8 +33,8 @@ jobs: uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ github.server_url == 'https://github.com' && github.actor || github.repository_owner }} + password: ${{ github.server_url == 'https://github.com' && secrets.GITHUB_TOKEN || secrets.PACKAGE_TOKEN }} - name: Extract metadata id: meta