Skip to content

Releases: webfactory/ssh-agent

Ignore failures when killing the SSH agent

24 Jun 06:32
ef0ce0c
Compare
Choose a tag to compare

A failure to kill the agent in the post-action step will no longer fail the workflow run. That way, you can kill the agent yourself when necessary (#33).

Support self-hosted runners

18 May 07:10
4fcb25e
Compare
Choose a tag to compare

This release includes the contribution by @thommyhh from #27.

Unless the SSH_AUTH_SOCK is configured explicitly, the SSH agent will now use a random file name for the socket. That way, multiple, concurrent SSH agents can be used on non-ephemeral, self-hosted runners.

A new post-action step will automatically clean up the running agent at the end of a job.

Be aware of the possible security implications: Two jobs running on the same runner might be able to access each other's socket and thus access repositories and/or hosts.

Supports multiple keys

14 Jan 09:34
Compare
Choose a tag to compare

This release adds support for using multiple SSH keys. It also improves UX by giving a clear error message when you forgot to configure the SSH keys as secret values.

Support MacOS worker nodes as well

15 Sep 07:33
e181806
Compare
Choose a tag to compare

Initial Release

14 Sep 22:37
c03703d
Compare
Choose a tag to compare

This action

  • starts the ssh-agent,
  • exports the SSH_AUTH_SOCK environment variable,
  • loads a private SSH key into the agent and
  • configures known_hosts for github.com.

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.