It was found that OpenShift Container Platform does not perform SSH Host Key checking when using ssh key authentication during builds. An attacker, with the ability to redirect network traffic, could use this to alter the resulting build output.
Use only methods (such as HTTPS with TLS verification) that enable the identity of the remote repository to be validated.