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