Skip to content

Commit e2744b2

Browse files
committed
ghcr: try logging in as repo owner instead of PR actor
1 parent 778f6cf commit e2744b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_ci_multi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: 'login ghcr.io'
2121
uses: redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # v1.7
2222
with:
23-
username: ${{ github.actor }}
23+
username: ${{ github.repository_owner }}
2424
password: ${{ secrets.GITHUB_TOKEN }}
2525
registry: ghcr.io/${{ github.repository_owner }}
2626

@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- name: "login ghcr.io"
3232
env:
33-
REGISTRY_USER: '${{ github.actor }}'
33+
REGISTRY_USER: '${{ github.repository_owner }}'
3434
REGISTRY_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
3535
IMAGE_REGISTRY: 'ghcr.io/${{ github.repository_owner }}'
3636
run: |

0 commit comments

Comments
 (0)