From bc388bbffcc20459cff88f1188af265316997f32 Mon Sep 17 00:00:00 2001 From: MrSphay Date: Thu, 14 May 2026 17:50:31 +0200 Subject: [PATCH] Validate registry publish secret --- .gitea/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 67a3647..1165ac6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -39,6 +39,15 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Validate registry token secret + env: + REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} + run: | + if [ -z "$REGISTRY_TOKEN" ]; then + echo "::error::Set the repository Actions secret REGISTRY_TOKEN to a Gitea token with package write access." + exit 1 + fi + - name: Login to Gitea registry uses: docker/login-action@v3 with: