I wish these tools would just auto fix it for me. I hate messages like this: > CRITICAL: Only communicate using SFTP connections. If you know what’s wrong, then fix it. My integration or unit tests will fail if your fix doesn’t work.
You can't just fix that in code. FTP and SFTP are completely different protocols that use different servers. You need a new server to talk to in order to fix that. And if it's a customer server maybe it can only do FTPS rather than SFTP.
If sftp is a requirement, it should have been captured earlier in the process and not after the integration code was written.