Skip to content

Commit a708535

Browse files
inancgumusmstoykov
authored andcommitted
Fix build workflow publish-packages auth issue
Fixes the authentication error in the `publish-packages` job when logging into GitHub Container Registry: The `publish-packages` job fails with "Username and password required" when attempting to login to ghcr.io. This happens because the job tries to use `${{ env.GITHUB_ACTOR }}` and `${{ env.GITHUB_TOKEN }}` environment variables that are never set.
1 parent 2a8f607 commit a708535

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,9 @@ jobs:
597597
echo "${PGP_SIGN_KEY}" > packaging/sign-key.gpg
598598
- name: Login to GitHub Container Registry
599599
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
600+
env:
601+
GITHUB_ACTOR: ${{ github.actor }}
602+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
600603
with:
601604
registry: ghcr.io
602605
username: ${{ env.GITHUB_ACTOR }}

0 commit comments

Comments
 (0)