File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,28 @@ permissions: {}
1414
1515jobs :
1616 verify_secrets_ghcr :
17- name : ' Verify credentials (ghcr) '
17+ name : ' Verify credentials'
1818 runs-on : ' ubuntu-latest'
1919 steps :
20- - name : ' login ghcr.io'
20+ - name : ' login ghcr.io (action) '
2121 uses : redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # v1.7
2222 with :
23- username : ${{ github.repository_owner }}
23+ username : ${{ github.actor }}
2424 password : ${{ secrets.GITHUB_TOKEN }}
2525 registry : ghcr.io/${{ github.repository_owner }}
2626
27- verify_secrets_ghcr_direct :
28- name : ' Verify credentials (ghcr direct)'
29- runs-on : ' ubuntu-latest'
30- steps :
31- - name : " login ghcr.io"
27+ - name : " login ghcr.io (actor)"
28+ env :
29+ REGISTRY_USER : ' ${{ github.actor }}'
30+ REGISTRY_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
31+ IMAGE_REGISTRY : ' ghcr.io/${{ github.repository_owner }}'
32+ run : |
33+ podman --version
34+ echo "${REGISTRY_TOKEN}" | podman login -u "${REGISTRY_USER}" --password-stdin "${IMAGE_REGISTRY}"
35+ docker --version
36+ echo "${REGISTRY_TOKEN}" | docker login -u "${REGISTRY_USER}" --password-stdin "${IMAGE_REGISTRY}"
37+
38+ - name : " login ghcr.io (repo owner)"
3239 env :
3340 REGISTRY_USER : ' ${{ github.repository_owner }}'
3441 REGISTRY_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
You can’t perform that action at this time.
0 commit comments