From 6ce34546e1751c0f7a2c76534b97ccb48f7408a5 Mon Sep 17 00:00:00 2001 From: Echo Date: Fri, 24 Apr 2026 02:18:27 +0000 Subject: [PATCH] ci: Hardcode internal Gitea URL for checkout with auth - GITHUB_SERVER_URL may point to unreachable external domain - Use http://192.168.2.189:3000 directly with GITHUB_TOKEN for auth - Private repos require token-in-URL authentication --- .gitea/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index faf6c09..a7b27fe 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -23,11 +23,9 @@ jobs: - name: Checkout repository run: | - # Use GITHUB_TOKEN for authenticated clone - GIT_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" - # Inject token into URL for private repos - AUTH_URL="${GIT_URL/http:\/\//http://echo:${GITHUB_TOKEN}@}" - git clone "${AUTH_URL}" . + # Use internal Gitea URL with GITHUB_TOKEN for auth + # GITHUB_SERVER_URL may point to unreachable external domain + git clone "http://echo:${GITHUB_TOKEN}@192.168.2.189:3000/${GITHUB_REPOSITORY}.git" . git checkout "$GITHUB_SHA" - name: Ensure Rust toolchain