You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
SSH Setup
v1.1.0
Setup SSH
This GitHub action helps you to setup SSH.
It support Node.js 12+ for Linux and macOS runners.
name: Example
on: [push]
jobs:
example:
name: Example
runs-on: ubuntu-latest
steps:
- name: Setup SSH
uses: MrSquaare/ssh-setup-action@v1
with:
host: github.com
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
name: Clone repository
on: [push]
jobs:
clone:
name: Clone
runs-on: ubuntu-latest
steps:
- name: Setup SSH
uses: MrSquaare/ssh-setup-action@v1
with:
host: github.com
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Clone repository
run: git clone [email protected]:username/repository.git
name: Clone repositories
on: [push]
jobs:
clone:
name: Clone
runs-on: ubuntu-latest
steps:
- name: Setup GitHub SSH
uses: MrSquaare/ssh-setup-action@v1
with:
host: github.com
private-key: ${{ secrets.SSH_PRIVATE_KEY_GITHUB }}
private-key-name: github
- name: Setup GitLab SSH
uses: MrSquaare/ssh-setup-action@v1
with:
host: gitlab.com
private-key: ${{ secrets.SSH_PRIVATE_KEY_GITLAB }}
private-key-name: gitlab
- name: Clone GitHub repository
run: git clone [email protected]:username/repository.git
- name: Clone GitLab repository
run: git clone [email protected]:username/repository.git
Bug reports, feature requests, other issues and pull requests are welcome. See CONTRIBUTING.md for more information.
Distributed under the MIT License. See LICENSE for more information.