change git credential section

This commit is contained in:
zuadi
2025-05-29 10:05:45 +02:00
committed by GitHub
parent 4951e2bb34
commit be1a06a759

View File

@@ -42,8 +42,12 @@ jobs:
- name: Set up Git credentials for private modules - name: Set up Git credentials for private modules
run: | run: |
git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf "https://github.com/" git config --global url."https://oauth2:${{ secrets.GH_PAT_FOR_MODULES }}@github.com".insteadOf "https://github.com"
echo "GOPRIVATE=github.com/tecamino/*" >> $GITHUB_ENV 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 - name: Build go backend binary
working-directory: ./backend working-directory: ./backend