Earlier quoted context omitted.
The better question is: Are you a whistleblower in a legal sense if what you reveal is legal? The government doesn't operate on unicorns and happy thoughts, it operates on the law. It's the job of the people to elect representatives such that the law conforms as much as possible to unicorns and happy thoughts.
Yes (or at least, possibly). > A federal agency violates the Whistleblower Protection Act if it takes or fails to take (or threatens to take or fail to take) a personnel action with respect to any employee or applicant because of any disclosure of information by the employee or applicant that he or she reasonably believes evidences a violation of a law, rule or regulation; gross mismanagement; gross waste of funds; a…
It's in fact arguable that things like PRISM even violated any of those provisions, which makes it risky (on a legal basis) to leak even if he wasn't in the intelligence community.
[1] http://thomas.loc.gov/cgi-bin/query/F?c101:1:./temp/~c101m8S...: