We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d2802e commit 1fdc91aCopy full SHA for 1fdc91a
.github/workflows/main.yml
@@ -27,6 +27,10 @@ jobs:
27
echo "$SSH_PRIVATE_KEY" > ~/.ssh/deployment_key
28
chmod 600 ~/.ssh/deployment_key
29
eval "$(ssh-agent -s)"
30
+ # Clear the agent to ensure no other keys are used
31
+ ssh-add -D
32
+ # Add only the correct key to the agent
33
+ ssh-add ~/.ssh/deployment_key
34
# Use expect to send the passphrase for the key
35
expect -c "
36
spawn ssh-add ~/.ssh/deployment_key
0 commit comments