Skip to content

yakuhzi/setup-ssh-agent

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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 }}