Browse Source

fix: modify the url of the remote to include the token (#5664)

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Gergely Brautigam 4 months ago
parent
commit
64dc681c97
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .github/workflows/docs.yml

+ 3 - 1
.github/workflows/docs.yml

@@ -27,10 +27,12 @@ jobs:
           go-version-file: "go.mod"
           go-version-file: "go.mod"
 
 
       - name: Configure Git
       - name: Configure Git
+        env:
+          TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
         run: |
           git config user.name "$GITHUB_ACTOR"
           git config user.name "$GITHUB_ACTOR"
           git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
           git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
-          git config url.https://${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/
+          git remote set-url origin "https://x-access-token:${{ env.TOKEN }}@github.com/${{ github.repository }}.git"
 
 
       - name: Build Docs
       - name: Build Docs
         run: make docs.publish
         run: make docs.publish