From f8c0f48b0bfae020ffa182a909f80e7f759cab77 Mon Sep 17 00:00:00 2001 From: Igor Santos Date: Thu, 7 Nov 2024 14:52:46 -0300 Subject: [PATCH] Update submodule URL to use token authentication --- .github/workflows/terraform-stage.yml | 2 +- .gitmodules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform-stage.yml b/.github/workflows/terraform-stage.yml index 810c8db..35414b8 100644 --- a/.github/workflows/terraform-stage.yml +++ b/.github/workflows/terraform-stage.yml @@ -24,7 +24,7 @@ jobs: with: submodules: true # Clona os submódulos junto com o repositório principal fetch-depth: 0 # Garante que o histórico completo seja baixado, necessário para alguns submódulos - token: ${{ secrets.GITHUB_TOKEN }} # Usa o token para acessar submódulos privados + token: ${{ secrets.GITHUB_TOKEN }} # Usa o Github token para acessar submódulos privados - name: Setup SSH key env: diff --git a/.gitmodules b/.gitmodules index 1d6e48d..137dcf2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "instances/monitoring"] path = instances/monitoring - url = git@github.com:nossas/monitoramento.git + url = https://${GITHUB_TOKEN}@github.com/nossas/monitoramento.git