Support multiple SSH keys (#14)

* Support concatenation of multiple private keys in the given secret

* Add a changelog
This commit is contained in:
Matthias Pigulla 2020-01-14 10:21:11 +01:00 committed by GitHub
parent ea39f521c5
commit 6cf6299d23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 73 additions and 17 deletions

View file

@ -1,7 +1,21 @@
on: [push, pull_request]
jobs:
load_key_demo:
single_key_demo:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Setup key
uses: ./
with:
ssh-private-key: |
${{ secrets.DEMO_KEY }}
${{ secrets.DEMO_KEY_2 }}
multiple_keys_demo:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
@ -12,8 +26,6 @@ jobs:
uses: ./
with:
ssh-private-key: ${{ secrets.DEMO_KEY }}
- run: |
ssh-add -l
echo SSH_AUTH_SOCK is at $SSH_AUTH_SOCK