Skip to content

Commit 51ce564

Browse files
committed
use GITHUB_TOKEN instead of PAT for ghcr.io publishing
1 parent 2456b35 commit 51ce564

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/master-latest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
uses: docker/login-action@v1
3737
with:
3838
registry: ghcr.io
39-
username: ${{ secrets.DOCKER_GITHUB_USERNAME }}
40-
password: ${{ secrets.DOCKER_GITHUB_PAT }}
39+
username: ${{ github.repository_owner }} # github username or org
40+
password: ${{ secrets.GITHUB_TOKEN }} # github actions builtin token. repo has to have pkg access.
4141

4242
# the arm64 is of course much slower due to qemu, so build and push amd64 **first**
4343
# due to the way manifests work, the gap between this and the complete push below

.github/workflows/tags.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
uses: docker/login-action@v1
5050
with:
5151
registry: ghcr.io
52-
username: ${{ secrets.DOCKER_GITHUB_USERNAME }}
53-
password: ${{ secrets.DOCKER_GITHUB_PAT }}
52+
username: ${{ github.repository_owner }} # github username or org
53+
password: ${{ secrets.GITHUB_TOKEN }} # github actions builtin token. repo has to have pkg access.
5454

5555
# the arm64 is of course much slower due to qemu, so build and push amd64 **first**
5656
# due to the way manifests work, the gap between this and the complete push below

0 commit comments

Comments
 (0)