fix: use HTTPS + token for featherChat submodule clone in CI
SSH has no keys in the container. Use exact URL remap to https://<token>@git.tbs.amn.gg/manawenuz/featherChat.git Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,9 +27,7 @@ jobs:
|
|||||||
AUTH_URL="${{ github.server_url }}/${{ github.repository }}.git"
|
AUTH_URL="${{ github.server_url }}/${{ github.repository }}.git"
|
||||||
AUTH_URL=$(echo "$AUTH_URL" | sed "s|://|://${{ github.token }}@|")
|
AUTH_URL=$(echo "$AUTH_URL" | sed "s|://|://${{ github.token }}@|")
|
||||||
git clone --depth 1 --branch ${{ github.ref_name }} "$AUTH_URL" .
|
git clone --depth 1 --branch ${{ github.ref_name }} "$AUTH_URL" .
|
||||||
apt-get install -y openssh-client
|
git config --global url."https://${{ github.token }}@git.tbs.amn.gg/manawenuz/featherChat.git".insteadOf "ssh://git@git.manko.yoga:222/manawenuz/featherChat.git"
|
||||||
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 submodule update --init --depth 1
|
git submodule update --init --depth 1
|
||||||
|
|
||||||
- name: Install Rust and dependencies
|
- name: Install Rust and dependencies
|
||||||
@@ -83,9 +81,7 @@ jobs:
|
|||||||
AUTH_URL="${{ github.server_url }}/${{ github.repository }}.git"
|
AUTH_URL="${{ github.server_url }}/${{ github.repository }}.git"
|
||||||
AUTH_URL=$(echo "$AUTH_URL" | sed "s|://|://${{ github.token }}@|")
|
AUTH_URL=$(echo "$AUTH_URL" | sed "s|://|://${{ github.token }}@|")
|
||||||
git clone --depth 1 --branch ${{ github.ref_name }} "$AUTH_URL" .
|
git clone --depth 1 --branch ${{ github.ref_name }} "$AUTH_URL" .
|
||||||
apt-get install -y openssh-client
|
git config --global url."https://${{ github.token }}@git.tbs.amn.gg/manawenuz/featherChat.git".insteadOf "ssh://git@git.manko.yoga:222/manawenuz/featherChat.git"
|
||||||
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 submodule update --init --depth 1
|
git submodule update --init --depth 1
|
||||||
|
|
||||||
- name: Install Rust and cross-compilation tools
|
- name: Install Rust and cross-compilation tools
|
||||||
@@ -134,9 +130,7 @@ jobs:
|
|||||||
AUTH_URL="${{ github.server_url }}/${{ github.repository }}.git"
|
AUTH_URL="${{ github.server_url }}/${{ github.repository }}.git"
|
||||||
AUTH_URL=$(echo "$AUTH_URL" | sed "s|://|://${{ github.token }}@|")
|
AUTH_URL=$(echo "$AUTH_URL" | sed "s|://|://${{ github.token }}@|")
|
||||||
git clone --depth 1 --branch ${{ github.ref_name }} "$AUTH_URL" .
|
git clone --depth 1 --branch ${{ github.ref_name }} "$AUTH_URL" .
|
||||||
apt-get install -y openssh-client
|
git config --global url."https://${{ github.token }}@git.tbs.amn.gg/manawenuz/featherChat.git".insteadOf "ssh://git@git.manko.yoga:222/manawenuz/featherChat.git"
|
||||||
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 submodule update --init --depth 1
|
git submodule update --init --depth 1
|
||||||
|
|
||||||
- name: Install Rust and cross-compilation tools
|
- name: Install Rust and cross-compilation tools
|
||||||
|
|||||||
Reference in New Issue
Block a user