Update test.yml

This commit is contained in:
Dawid Dziurla 2025-08-06 11:06:10 +02:00 committed by GitHub
parent 029e36f26a
commit 75091e5206
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,11 +28,13 @@ jobs:
run: |
mkdir -p "$HOME/.ssh"
echo "$SSH_PUBLIC_KEY" | tee "$HOME/.ssh/authorized_keys"
echo "$SSH_PRIVATE_KEY" | tee /tmp/key
chmod 600 /tmp/key
chmod 600 "$HOME/.ssh/authorized_keys"
echo 'SSH_KNOWN_HOSTS<<EOF' >> $GITHUB_ENV
echo $(ssh-keyscan localhost) >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
ssh -i <(echo "$SSH_PRIVATE_KEY") localhost whoami
ssh -i /tmp/key localhost whoami
- name: With everything
uses: ./
with: