From 67d5a4b3a7d928443c42dd34223a423941f0ae57 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Wed, 23 Jul 2025 17:53:02 -0700 Subject: [PATCH] chore: use ssh private key for git sync --- .github/workflows/git-sync.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/git-sync.yml b/.github/workflows/git-sync.yml index 54f92153d3..493f9b349e 100644 --- a/.github/workflows/git-sync.yml +++ b/.github/workflows/git-sync.yml @@ -12,14 +12,13 @@ jobs: steps: - name: git-sync env: - git_sync_source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }} git_sync_destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }} - if: env.git_sync_source_repo && env.git_sync_destination_repo + git_sync_ssh_private_key: ${{ secrets.GIT_SYNC_SSH_PRIVATE_KEY }} + if: env.git_sync_destination_repo && env.git_sync_ssh_private_key uses: wei/git-sync@v3 with: - source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }} + source_repo: "git@github.com:aws/aws-sdk-js.git" source_branch: "master" - destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }} + destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }} destination_branch: "master" - source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }} - destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }} + ssh_private_key: ${{ secrets.GIT_SYNC_SSH_PRIVATE_KEY }}