From 234f3c4bfe03a787792f0d2318c92735bd5ac91f Mon Sep 17 00:00:00 2001 From: Siavash Sameni Date: Sun, 5 Apr 2026 14:50:24 +0400 Subject: [PATCH] fix: use HTTPS + token for featherChat submodule clone in CI SSH has no keys in the container. Use exact URL remap to https://@git.tbs.amn.gg/manawenuz/featherChat.git Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 74cc0c3..a5eb080 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -27,9 +27,7 @@ jobs: AUTH_URL="${{ github.server_url }}/${{ github.repository }}.git" AUTH_URL=$(echo "$AUTH_URL" | sed "s|://|://${{ github.token }}@|") git clone --depth 1 --branch ${{ github.ref_name }} "$AUTH_URL" . - apt-get install -y openssh-client - mkdir -p ~/.ssh && ssh-keyscan -p 2222 git.tbs.amn.gg >> ~/.ssh/known_hosts 2>/dev/null - git config --global url."ssh://git@git.tbs.amn.gg:2222/manawenuz/".insteadOf "ssh://git@git.manko.yoga:222/manawenuz/" + git config --global url."https://${{ github.token }}@git.tbs.amn.gg/manawenuz/featherChat.git".insteadOf "ssh://git@git.manko.yoga:222/manawenuz/featherChat.git" git submodule update --init --depth 1 - name: Install Rust and dependencies @@ -83,9 +81,7 @@ jobs: AUTH_URL="${{ github.server_url }}/${{ github.repository }}.git" AUTH_URL=$(echo "$AUTH_URL" | sed "s|://|://${{ github.token }}@|") git clone --depth 1 --branch ${{ github.ref_name }} "$AUTH_URL" . - apt-get install -y openssh-client - mkdir -p ~/.ssh && ssh-keyscan -p 2222 git.tbs.amn.gg >> ~/.ssh/known_hosts 2>/dev/null - git config --global url."ssh://git@git.tbs.amn.gg:2222/manawenuz/".insteadOf "ssh://git@git.manko.yoga:222/manawenuz/" + git config --global url."https://${{ github.token }}@git.tbs.amn.gg/manawenuz/featherChat.git".insteadOf "ssh://git@git.manko.yoga:222/manawenuz/featherChat.git" git submodule update --init --depth 1 - name: Install Rust and cross-compilation tools @@ -134,9 +130,7 @@ jobs: AUTH_URL="${{ github.server_url }}/${{ github.repository }}.git" AUTH_URL=$(echo "$AUTH_URL" | sed "s|://|://${{ github.token }}@|") git clone --depth 1 --branch ${{ github.ref_name }} "$AUTH_URL" . - apt-get install -y openssh-client - mkdir -p ~/.ssh && ssh-keyscan -p 2222 git.tbs.amn.gg >> ~/.ssh/known_hosts 2>/dev/null - git config --global url."ssh://git@git.tbs.amn.gg:2222/manawenuz/".insteadOf "ssh://git@git.manko.yoga:222/manawenuz/" + git config --global url."https://${{ github.token }}@git.tbs.amn.gg/manawenuz/featherChat.git".insteadOf "ssh://git@git.manko.yoga:222/manawenuz/featherChat.git" git submodule update --init --depth 1 - name: Install Rust and cross-compilation tools