{"repo":"webfactory/ssh-agent","free":true,"listed":false,"github":"https://github.com/webfactory/ssh-agent","clone":"git clone https://github.com/webfactory/ssh-agent.git","description":"GitHub Action to setup `ssh-agent` with a private key","language":"JavaScript","stars":1482,"topics":["action","ssh","ssh-agent","github-actions","workflow"],"license":"MIT","category":"workflow-automation","readme_excerpt":"ssh-agent GitHub Action This action starts the ssh-agent , exports the SSH AUTH SOCK environment variable, and loads one or several private SSH key into the agent. It should work in all GitHub Actions virtual environments, including container-based workflows. Windows and Docker support is, however, somewhat new. Since we have little feedback from the field, things might not run so smooth for you as we'd hope. If Windows and/or Docker-based workflows work well for you, leave a :+1: at https://github.com/webfactory/ssh-agent/pull/17. Also, using multiple GitHub deployment keys is supported; keys are mapped to repositories by using SSH key comments (see below). Why? When running a GitHub Action workflow to stage your project, run tests or build images, you might need to fetch additional libraries or vendors from private repositories. GitHub Actions only have access to the repository they run for. So, in order to access additional private repositories, create an SSH key with sufficient access privileges. Then, use this action to make the key available with ssh-agent on the Action worker node. Once this has been set up, git clone commands using ssh URLs will just work . Also, running ssh commands to connect to other servers will be able to use the key. Usage 1. Generate a new SSH key with sufficient access privileges. For security reasons, don't use your personal SSH key but set up a dedicated one for use in GitHub Actions. See below for a few hints if you are unsure about this st","default_branch":null,"files":null,"tree":[],"storefront":"/r/webfactory","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/webfactory/ssh-agent/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."}