Skip to content

Commit

Permalink
Fix big
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Sep 18, 2024
1 parent 08dfdec commit 88bd7d6
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/copy-to-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,17 @@ jobs:
run: |
echo "${{ secrets.SSH_KNOWN_HOSTS_DWARSHUIS }}" >> ~/.ssh/known_hosts
- name: Install expect
- name: Create SSH Askpass Script
run: |
sudo apt-get update
sudo apt-get install -y expect
echo 'echo "${{ secrets.SSH_PASSPHRASE_DWARSHUIS }}"' > /tmp/askpass.sh
chmod +x /tmp/askpass.sh
- name: Add SSH Key with Passphrase
- name: Add SSH Key with Passphrase using Askpass
env:
SSH_ASKPASS: /tmp/askpass.sh
DISPLAY: "none" # required by SSH_ASKPASS
run: |
/usr/bin/expect <<EOF
spawn ssh-add /dev/null
expect "Enter passphrase for"
send "${{ secrets.SSH_PASSPHRASE_DWARSHUIS }}\r"
interact
EOF
setsid ssh-add
- name: Copy /docs to Remote
run: |
Expand Down

0 comments on commit 88bd7d6

Please sign in to comment.