Take the case of F-35, the only country which has source codes apart from the U.S. is the UK. A very special exemption. They are also the only Tier 2 partner.
Everybody else has basically a black box of code given to them in terms of code for the aircraft.