Star-forming environments such as star-forming and Starburst Galaxies (SFGs and SBGs) experience intense phases of stellar formation activity. The Fermi-LAT collaboration has found a correlation between the gamma-ray and infrared luminosities for a sample of local SFGs and SBGs. Yet, the nature of cosmic-ray (CR) transport inside these sources is still under debate. I discuss novel and tight constraints between CR transport in these sources and the star formation rate (SFR), exploiting 15 years of public Fermi-LAT data. Firstly, there is an indication at $\sim 4\sigma$
level from other two starburst galaxies, M83 and NGC 1365, strengthening even more the correlation between gamma-rays and SFR. However, sources like NGC 6946 and IC 342 do not show any evidence of gamma-ray emission despite correlating with the most energetic CRs ever observed. Unresolved sources strongly reduce the degree of calorimetry of SBGs, thereby decreasing the contribution of SBGs into the diffuse gamma-ray and neutrino backgrounds. This intrinsically implies that if star-forming activity were able to accelerate ultra-high energy CRs, their corresponding gamma-ray and neutrino emission might be dim.
