Skip to content

Commit 2ff5e33

Browse files
fclairambclaude
andauthored
fix(ci): use GITHUB_TOKEN for GHCR authentication (#1577)
Replace CR_PAT with GITHUB_TOKEN for GitHub Container Registry authentication. The personal access token was causing "denied" errors. - Add permissions block with packages:write and contents:read - Use secrets.GITHUB_TOKEN instead of secrets.CR_PAT - Use github.actor for username (recommended for GITHUB_TOKEN) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0465389 commit 2ff5e33

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/docker.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- "v*.*.*"
99
# pull_request:
1010

11+
permissions:
12+
contents: read
13+
packages: write
14+
1115
jobs:
1216
build-and-push:
1317
strategy:
@@ -66,8 +70,8 @@ jobs:
6670
uses: docker/login-action@v3
6771
with:
6872
registry: ghcr.io
69-
username: ${{ github.repository_owner }}
70-
password: ${{ secrets.CR_PAT }}
73+
username: ${{ github.actor }}
74+
password: ${{ secrets.GITHUB_TOKEN }}
7175
- name: Build and push (scratch)
7276
uses: docker/build-push-action@v6
7377
with:

0 commit comments

Comments
 (0)