Look, there are legitimate reasons to whistleblow. And you know what? There are protections within our law that every single solitary government employee is made aware of and given training or information on in some way shape or form during their tenure with the government, if not multiple times. If you see something being done that is truly and utterly illegal and you blow the whistle you're likely going to be okay regarding the law or at least have a firm foothold.
However, on the flip side of that, to be able to rightfully and truthfully garauntee that such protection is provided instances where leaks are made that are NOT found to be illegal or to the standarded required for leaking then punishment must be metted out to its fullest available means. This by its nature helps assure that only the most obviously wrong practices are the ones most likely to be legitiamtely leaked rather than people leaking for the notoriety or to "get back at" the government.
This guy was not trying to do some noble deed. He was bragging about his work, he was seemingly enjoying the thrill and of being a rebel, of simply screwing the system for the sake of screwing it. He did nothing that was protected it seems under the whisteblower protection act.
Throw the book at him.