Skip to content

Commit 9e0b60c

Browse files
committed
Fix GHCR authentication issue in Claude workflow by updating login method and adding a logout step for improved reliability.
1 parent 169140e commit 9e0b60c

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/claude.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,12 @@ jobs:
3030
with:
3131
fetch-depth: 1
3232

33-
- name: Login to GitHub Container Registry
34-
uses: docker/login-action@v3
35-
with:
36-
registry: ghcr.io
37-
username: MervinPraison
38-
password: ${{ secrets.GH_TOKEN }}
39-
40-
- name: Test Docker Pull After Login
33+
- name: Fix GHCR Authentication Bug
4134
run: |
42-
echo "=== Testing Docker Pull After Login ==="
35+
echo "=== Applying GHCR workaround ==="
36+
docker logout ghcr.io || true
37+
echo "${{ secrets.GH_TOKEN }}" | docker login ghcr.io -u MervinPraison --password-stdin
4338
docker pull ghcr.io/mervinpraison/praisonai-claudecode:latest
44-
echo "Pull successful!"
4539
4640
- name: Run Claude Code
4741
id: claude

0 commit comments

Comments
 (0)