flight23
API 5L Section 7.8 Workmanship and Defects does not have a clause for or make mention of porosity.
Section 7.8.14 Other Defects only considers surface imperfections greater than 12,5% wall thickness as defects. A skilled UT tech should be able to tell you the maximum depth at which an ultrasonic response occurs.