Skip to content

Commit 6ece4fb

Browse files
committed
fix the pat.
1 parent 8ae2c1a commit 6ece4fb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
fetch-depth: 0 # Fetch all history
4444
# For PRs, checkout the PR branch; for manual triggers use provided ref; otherwise use github.ref
4545
ref: ${{ github.event.pull_request.head.sha || github.event.inputs.ref || github.event.inputs.GIT_SHA || github.ref }}
46-
token: ${{ secrets.GH_PAT }} # Use PAT for checkout
4746

4847
- name: Set up Docker Buildx
4948
uses: docker/setup-buildx-action@v2
@@ -52,8 +51,8 @@ jobs:
5251
uses: docker/login-action@v2
5352
with:
5453
registry: ghcr.io
55-
username: ${{ secrets.GH_USER }} # Use the PAT owner's username
56-
password: ${{ secrets.GH_PAT }} # Use PAT instead of GITHUB_TOKEN
54+
username: ${{ github.actor }}
55+
password: ${{ secrets.GITHUB_TOKEN }}
5756

5857
- name: Build and Push Images
5958
run: |

0 commit comments

Comments
 (0)