Typical causes of porosity is contamination on the base metal, atmosphere sneaking into the weld pool due to improper shielding gas or flux, mechanical issues like cracked MIG liners, worn O-rings, or loose fittings, or poor welding technique.