I presume codebase is for something critical to your company. To give full keys to the company to unproven foreign entity and lose control of codebase for good... a fireable offense to say the least
Thats hyper toxic and shows how clueless and bad at its work management is. Won't get better.