Withholding information that would get innocent people killed was the right thing to do, not a journalistic sin.
Actions speak louder than words. The reality is that at least 10 journalists have been killed by the US military, and according to reports I believe to be true journalists have been arrested and tortured by US forces.