From d3579db302c7d9ac087c6fb758dafb59223d47d5 Mon Sep 17 00:00:00 2001 From: Hadasa Schechter <72219643+buzz-code@users.noreply.github.com> Date: Tue, 20 Oct 2026 07:10:25 +0300 Subject: [PATCH] ci: log in to ghcr.io with GITHUB_TOKEN instead of PAT Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_015ZcDA1vzkuTY2DnxG5UNDh --- .github/workflows/docker-image.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 84aeb73d..5db70161 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -10,6 +10,9 @@ jobs: build: name: 'Build' runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - name: "Build:checkout" uses: actions/checkout@v2 @@ -22,8 +25,10 @@ jobs: filters: | client: - 'client/**' + - '.github/workflows/docker-image.yml' server: - 'server/**' + - '.github/workflows/docker-image.yml' - name: Login to Docker Hub if: steps.changes.outputs.client == 'true' || steps.changes.outputs.server == 'true' @@ -31,7 +36,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.PAT }} + password: ${{ secrets.GITHUB_TOKEN }} - name: 'Build:dockerimage-client' if: steps.changes.outputs.client == 'true'