1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

add test for OpenSSH format

This commit is contained in:
shimataro 2021-02-23 09:51:32 +09:00
parent c6162f319b
commit 193dc6cefe
No known key found for this signature in database
GPG key ID: BE92C05736911A9D

View file

@ -6,7 +6,7 @@ on:
- push - push
jobs: jobs:
ssh: ssh-pem:
name: Connect to github.com name: Connect to github.com
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
@ -21,6 +21,21 @@ jobs:
run: ls -l ~/.ssh run: ls -l ~/.ssh
- name: git clone through SSH - name: git clone through SSH
run: git clone git@github.com:shimataro/ssh-key-action.git tmp run: git clone git@github.com:shimataro/ssh-key-action.git tmp
ssh-rfc4716:
name: Connect to github.com (RFC4716 format)
runs-on: ubuntu-20.04
steps:
- name: Checkout source codes
uses: actions/checkout@v2
- name: Install SSH key
uses: ./.
with:
key: ${{ secrets.SSH_KEY_RFC4716 }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: print created files
run: ls -l ~/.ssh
- name: git clone through SSH
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
ssh-with-name: ssh-with-name:
name: Connect to github.com with name and config name: Connect to github.com with name and config
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04