{"repo":"wearerequired/git-mirror-action","free":true,"listed":false,"github":"https://github.com/wearerequired/git-mirror-action","clone":"git clone https://github.com/wearerequired/git-mirror-action.git","description":"⏭ A GitHub Action for mirroring a git repository to another location via SSH.","language":"Shell","stars":156,"topics":["github-action","workflow","ssh"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Git Mirror Action A GitHub Action for mirroring a git repository to another location via SSH. Inputs source-repo Required SSH URL of the source repo. destination-repo Required SSH URL of the destination repo. dry-run Optional (default: false ) Execute a dry run. All steps are executed, but no updates are pushed to the destination repo. Environment variables SSH PRIVATE KEY : Create a SSH key without a passphrase which has access to both repositories. On GitHub you can add the public key as a deploy key to the repository. GitLab has also deploy keys with write access and for any other services you may have to add the public key to your personal account. Store the private key as an encrypted secret and use it in your workflow as seen in the example workflow below. SSH KNOWN HOSTS : Known hosts as used in the known hosts file. StrictHostKeyChecking is disabled in case the variable isn't available. If you added the private key or known hosts in an environment make sure to reference the environment name in your workflow otherwise the secret is not passed to the workflow. Example workflow Docker License The Dockerfile and associated scripts and documentation in this project are released under the MIT License.","default_branch":null,"files":null,"tree":[],"storefront":"/r/wearerequired","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wearerequired/git-mirror-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}