diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index c02e9419d568fa8562a44fa95db2bed1feb32cd0..6b7c63971156b2a4ac10b6ab5e060ddeb29eaaa6 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -92,15 +92,13 @@ jobs:
            .pages) |= ($pages | fromjson)
         ' temp-docs/docs.json > temp-docs/docs.json.tmp && mv temp-docs/docs.json.tmp temp-docs/docs.json
 
-    - name: Configure git
-      run: |
-        git config --local user.email "admin@aurelio.ai"
-        git config --local user.name "aurelio-bot"
-
     - name: Git commit and push
       working-directory: temp-docs
       run: |
         git config --local user.email "admin@aurelio.ai"
         git config --local user.name "aurelio-bot"
+        git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/aurelio-labs/docs.git
         git add .
         git diff --quiet && git diff --staged --quiet || (git commit -m "chore: update semantic router docs" && git push)
+      env:
+        GITHUB_TOKEN: ${{ secrets.PAT }}