Skip to content
package

GitHub Action

Setup SSH Agent

v2.1.0 Latest version

Setup SSH Agent

package

Setup SSH Agent

Starts the ssh-agent with the provided SSH keys and adds github.com to the known hosts

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup SSH Agent

uses: yakuhzi/setup-ssh-agent@v2.1.0

Learn more about this action in yakuhzi/setup-ssh-agent

Choose a version

Setup SSH Agent

A GitHub Action that starts the ssh-agent with the provided SSH keys and adds github.com to the known hosts.

Usage

Here is an example how to use this action:

- name: Set up ssh-agent
  uses: yakuhzi/setup-ssh-agent@v2
  with:
    ssh-public-key: ${{ secrets.SSH_PUBLIC_KEY }}
    ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}