fix: use GHCR_TOKEN with write:packages scope for GHCR login

This commit is contained in:
ashim-hq 2026-04-17 02:12:32 +08:00
parent 62f0a2a238
commit e14414f306

View file

@ -101,8 +101,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Extract metadata
id: meta
@ -160,8 +160,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Extract metadata
id: meta