From c49964d4d407dcbe937f2fc74954e0e1ec03df95 Mon Sep 17 00:00:00 2001 From: datadunia Date: Wed, 6 May 2026 17:52:25 +0700 Subject: [PATCH] fix: use SSH for submodule auth --- .gitea/workflows/release.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index e26ce52..e45a6cc 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -21,9 +21,13 @@ jobs: with: submodules: false - - name: Update submodules with auth + - name: Setup SSH for submodules run: | - git config http.extraHeader "Authorization: Bearer ${{ gitea.token }}" + mkdir -p ~/.ssh + echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan git.datadunia.com >> ~/.ssh/known_hosts + git config --global url."git@git.datadunia.com:".insteadOf "https://git.datadunia.com/" git submodule update --init --recursive ls -la app/ # Debug @@ -66,9 +70,13 @@ jobs: with: submodules: false - - name: Update submodules with auth + - name: Setup SSH for submodules run: | - git config http.extraHeader "Authorization: Bearer ${{ gitea.token }}" + mkdir -p ~/.ssh + echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan git.datadunia.com >> ~/.ssh/known_hosts + git config --global url."git@git.datadunia.com:".insteadOf "https://git.datadunia.com/" git submodule update --init --recursive ls -la app/ # Debug