In World War II the Chicago Tribune basically gave away that the US had broken Japanese Naval Codes.
Nothing happened to them.
The idea that there was some sort of mythical good 'ol days where American Newspapers didn't give away vital information and if they did they were prosecuted is a myth.
The problem was even worse, on both sides, in the Civil War.
Exactly right. The naval officer who gave it to them was demoted, but nothing happened to the Trib.