Skip to content

Commit 25c4f3e

Browse files
Zingzyclaude
andcommitted
fix: use GHCR_PAT for image push (org policy blocks GITHUB_TOKEN write)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent bc35be0 commit 25c4f3e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
registry: ${{ env.REGISTRY }}
3737
username: ${{ github.actor }}
38-
password: ${{ secrets.GITHUB_TOKEN }}
38+
password: ${{ secrets.GHCR_PAT }}
3939

4040
- name: Extract metadata
4141
id: meta
@@ -71,7 +71,7 @@ jobs:
7171
script: |
7272
set -e
7373
cd /opt/spoo
74-
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
74+
echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
7575
docker compose -f docker-compose.prod.yml pull
7676
docker compose -f docker-compose.prod.yml up -d --remove-orphans
7777
docker image prune -f

0 commit comments

Comments
 (0)