Support concatenation of multiple private keys in the given secret

This commit is contained in:
Matthias Pigulla 2020-01-10 20:04:06 +00:00
parent ea39f521c5
commit 1bc48df605
4 changed files with 59 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