From 4069de69f7e0775784a05e45f50f844b26d992ec Mon Sep 17 00:00:00 2001 From: InAnYan Date: Wed, 29 Jul 2026 18:35:02 +0200 Subject: [PATCH] fix: add config --- .gitea/workflows/deploy-infrastructure.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-infrastructure.yml b/.gitea/workflows/deploy-infrastructure.yml index b51b7dd..db7df59 100644 --- a/.gitea/workflows/deploy-infrastructure.yml +++ b/.gitea/workflows/deploy-infrastructure.yml @@ -38,7 +38,15 @@ jobs: - name: Setup OpenTofu uses: opentofu/setup-opentofu@v1 - + + - name: Configure Git Auth for Private Modules + run: | + # Strip the protocol (https:// or http://) from the server URL + GITEA_HOST=$(echo "${{ gitea.server_url }}" | sed -e 's|^[^/]*//||') + + # Tell Git to use the actor and token for any request matching your server + git config --global url."https://${{ gitea.actor }}:${{ secrets.GITEA_TOKEN }}@$GITEA_HOST/".insteadOf "${{ gitea.server_url }}/" + - name: OpenTofu Init & Apply run: | tofu init