diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 4fe2ec57..4669e13a 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -62,8 +62,8 @@ jobs: $sftp_script_path = "$env:TEMP\sftp_script.txt" $sftp_script | Out-File -FilePath $sftp_script_path - # Use PSFTP to upload the file via SFTP - & "$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 # Cleanup the temporary script file Remove-Item $sftp_script_path