Skip to content

Commit b0f3193

Browse files
committed
Use SSH agent for Github access for the updater workflow
1 parent 4da157b commit b0f3193

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ 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/"
41+
- name: Load adk-bot SSH Private Key
42+
uses: webfactory/ssh-agent@v0.9.0
43+
with:
44+
ssh-private-key: ${{ secrets.ADK_BOT_SSH_PRIVATE_KEY }}
4645

4746
- name: Install dependencies
4847
run: |

0 commit comments

Comments
 (0)