From be1a06a7598b6992f878a87ae0c1d316bdd2e8ea Mon Sep 17 00:00:00 2001 From: zuadi <159902586+zuadi@users.noreply.github.com> Date: Thu, 29 May 2025 10:05:45 +0200 Subject: [PATCH] change git credential section --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c7f260c..aa84d6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,8 +42,12 @@ jobs: - name: Set up Git credentials for private modules run: | - git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf "https://github.com/" - echo "GOPRIVATE=github.com/tecamino/*" >> $GITHUB_ENV + git config --global url."https://oauth2:${{ secrets.GH_PAT_FOR_MODULES }}@github.com".insteadOf "https://github.com" + env: + GH_PAT_FOR_MODULES: ${{ secrets.GH_PAT_FOR_MODULES }} # Make sure the secret is passed + + - name: Go Mod Tidy & Download + run: go mod tidy -v - name: Build go backend binary working-directory: ./backend