From 3545d8a6f0b728f9febfcfdd979a8b8c1ca3d4c2 Mon Sep 17 00:00:00 2001 From: rlabadmin Date: Thu, 23 Apr 2026 14:25:03 +0200 Subject: [PATCH] Use built-in GITHUB_TOKEN for Gitea registry login Avoids needing to configure REGISTRY_USER / REGISTRY_PASSWORD secrets. Gitea injects a per-run token scoped to the repo's own packages. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/flow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/flow.yml b/.gitea/workflows/flow.yml index 5430f8a..a7932ab 100644 --- a/.gitea/workflows/flow.yml +++ b/.gitea/workflows/flow.yml @@ -42,9 +42,9 @@ jobs: - name: Log in to Gitea registry run: | - echo "${{ secrets.REGISTRY_PASSWORD }}" | \ + echo "${{ secrets.GITHUB_TOKEN }}" | \ docker login ${{ env.REGISTRY }} \ - --username ${{ secrets.REGISTRY_USER }} \ + --username "${{ github.actor }}" \ --password-stdin - name: Build image