Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
chevrons-down

GitHub Action

ssh-agent-deploy-key

v1.0.1

ssh-agent-deploy-key

chevrons-down

ssh-agent-deploy-key

GitHub Action to setup ssh-agent and GitHub Deploy keys with private keys

Installation

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

              

- name: ssh-agent-deploy-key

uses: cardoe/[email protected]

Learn more about this action in cardoe/ssh-agent-deploy-key

Choose a version

ssh-agent-deploy-key status

ssh-agent with GitHub deploy key support

This action is inspired by the webfactory/ssh-agent action. My needs required adding some additional support and I wanted to add tests. I also preferred to use TypeScript for some stronger validation.

This action starts an ssh-agent and loads the private keys you supply into it. All keys must not contain a passphrase.

Usage

- uses: cardoe/ssh-agent-deploy-key@v1
  with:
    # SSH private keys to load into the ssh-agent
    ssh-private-key: |
      ${{ secrets.YOUR_KEY }}
      ${{ secrets.ANOTHER_KEY }}

    # Known hosts in addition to the user and global host key database. The
    # public SSH keys for a host may be obtained using the utility
    # `ssh-keyscan`. For example, `ssh-keyscan github.com`.
    ssh-known-hosts: ''

GitHub Deploy Keys