Refactor SSH key setup in deploy.yml #15
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rdenadai/web.redecapivara.social!15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rdenadai-patch-5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Removed unnecessary echo statements and added SSH agent setup.
Pull Request Overview
This PR refactors the SSH key setup in the GitHub Actions deploy workflow by removing debug echo statements and implementing proper SSH agent configuration to handle SSH keys with passphrases.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
@ -43,1 +43,4 @@eval $(ssh-agent -s)echo "${{ secrets.SSH_KEY_PASSPHRASE }}" | ssh-add ~/.ssh/id_rsassh-keyscan -p ${{ secrets.SSH_PORT }} -H "${{ secrets.VM_IP }}" >> ~/.ssh/known_hostsPassing the passphrase through echo and pipe could expose it in process lists or logs. Consider using ssh-add with the -q flag and SSH_ASKPASS environment variable, or use expect/sshpass for more secure passphrase handling.