Skip to content

Commit 4da157b

Browse files
committed
Add config of git credential to fix the permission issue for git clone in the updater workflow
1 parent 9b2554c commit 4da157b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/update-python-docs.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
with:
3939
credentials_json: '${{ secrets.ADK_GCP_SA_KEY }}'
4040

41+
- name: Configure Git Credentials
42+
env:
43+
PAT: ${{ secrets.ADK_BOT_GITHUB_TOKEN }}
44+
run: |
45+
git config --global url."https://oauth2:${PAT}@github.com/".insteadOf "https://github.com/"
46+
4147
- name: Install dependencies
4248
run: |
4349
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)