You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
ssh-agent-deploy-key
v1.0.1
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.
- 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: ''