We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33e2956 commit c60edb5Copy full SHA for c60edb5
.github/workflows/daily.yml
@@ -62,8 +62,8 @@ jobs:
62
$sftp_script_path = "$env:TEMP\sftp_script.txt"
63
$sftp_script | Out-File -FilePath $sftp_script_path
64
65
- # Use PSFTP to upload the file via SFTP
66
- & "$env:TEMP\psftp.exe" -batch -pw $env:FTP_PASSWORD $env:FTP_USERNAME@$env:FTP_SERVER -b $sftp_script_path
+ # Use PSFTP to upload the file via SFTP with host key checking disabled
+ & "$env:TEMP\psftp.exe" -batch -o StrictHostKeyChecking=no -pw $env:FTP_PASSWORD $env:FTP_USERNAME@$env:FTP_SERVER -b $sftp_script_path
67
68
# Cleanup the temporary script file
69
Remove-Item $sftp_script_path
0 commit comments