From 1c0753059350ccf818b0a1d6f4e59cd85da0fdcd Mon Sep 17 00:00:00 2001 From: gerviba Date: Sun, 1 Nov 2026 19:02:01 +0100 Subject: [PATCH] Maybe 2 --- .gitea/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index ba2ce4b..61989eb 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -15,11 +15,13 @@ jobs: - /home/clustermaster/storage/cdn/serve/internal/probe:/output steps: - name: Check out repository + env: + CHECKOUT_TOKEN: ${{ github.token }} run: | + [ -n "${CHECKOUT_TOKEN}" ] || { echo "job token is empty"; exit 1; } command -v git >/dev/null || (apt-get update && apt-get install -y --no-install-recommends git) - auth=$(printf '%s' "x-access-token:${GITHUB_TOKEN}" | base64 -w0) + auth=$(printf '%s' "gitea-actions:${CHECKOUT_TOKEN}" | base64 -w0) git init -q . - git config http.sslVerify false git -c http.extraHeader="Authorization: Basic ${auth}" \ fetch --depth=1 "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" "${GITHUB_SHA}" git checkout -q FETCH_HEAD