kellydc/Secure File Transfer

A GitHub Action to securely transfer files over SSH using SCP with support for upload and download directions.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jan 8, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: kellydc/sshft@012f6d7a3018fed83483972ea53abec7e067d371 # v1.1.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
hostSSH host to connect to (source host for download, destination host for upload)yes
portSSH portno22
usernameSSH usernameyes
keySSH private keyyes
passphrasePassphrase for the SSH private keyno
sourceSource file or directory to transferyes
destinationDestination path (on destination server for download direction, on host for upload direction)yes
directionTransfer direction (upload: runner->remote, download: remote->remote or remote->runner)noupload
destination_hostDestination SSH host for download direction (if not provided, files download to runner)no
destination_portDestination SSH port for download directionno22
destination_usernameDestination SSH username for download directionno
destination_keyDestination SSH private key for download directionno
destination_passphrasePassphrase for the destination SSH private keyno
recursiveTransfer files recursivelynotrue
strict_host_key_checkingEnable strict host key checkingnotrue
post_scriptOptional inline script to run on the target server after file transfer completesno
post_script_pathOptional path to a script on the target server to run after file transfer completesno
backup_before_transferCreate a backup of the destination before transferring filesnotrue
namedescription
successFile transfer was successful
backup_createdWhether a backup was created
backup_pathPath to the backup file on the remote server
backup_sizeSize of the backup file
errorAn error occurred during file transfer
script_executedWhether a post-transfer script was executed
script_outputOutput from the post-transfer script execution
script_errorError message if script execution failed