From 0c672375480a72cd61962e7dbe18d017f2b5ee10 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 24 Jul 2025 00:16:02 +0000 Subject: [PATCH] chore(scripts): use ssh private key for git sync --- .github/workflows/git-sync.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/git-sync.yml b/.github/workflows/git-sync.yml index e9628d4ff17b..12ec0ca0cd38 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-v3.git" source_branch: "main" destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }} destination_branch: "main" - source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }} - destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }} \ No newline at end of file + ssh_private_key: ${{ secrets.GIT_SYNC_SSH_PRIVATE_KEY }} \ No newline at end of file