Politicians routinely use the press in this manner to send messages to adversaries.
A nephew of mine was serving on board the USS Hartford back in 2020 when they took a CNN camera crew under the Arctic circle and surfaced through the ice. You can find lots of similar news clips involving most/all military branches with just a little bit of effort.
And back in the 60’s my dad worked at MITRE where he held a top secret clearance. He worked on a missile defense program that was so highly classified at the time that he said only about six people knew the full scope of it. A few months after a successful test, President Kennedy announced it during a state of the union address. My dad is convinced he was sending a public warning to the USSR about our capabilities.
Them!