While it seems you are implying that is not cool, it’s actually unremarkable and common government transparency.
https://cthrupayroll.mass.gov/#!/year/2025/card/1
Federal pay is already supposed to be public knowledge and is highly regulated based on role https://www.federalpay.org/. Although who knows if that's true anymore. Seems like all precedent is up in the air nowadays
I got all pissed in college when I read a magazine article about how the football coach at the state school I attended was the highest paid state employee that year. There was nothing weird about that article, and I think it's very similar to your hypothetical.
I do, ideologically, think that it's much better for reporters to focus on powerful people near the top, but I don't think it's weird to report on government employees, in general.
Just unfortunate that the resources are going there.
But even if Wired did, it still wouldn't be "doxxing", which used to imply publishing not just names but addresses and other PII (like SSNs) for non-public, non-governmental figures.