Depending on the definition of "informant", that would have been illegal[1] (according to this source).
Based on your link, it seems like publishing their ID would be illegal. But if a reporter called them up and interviewed them without publishing identity, no law would be broken. Not legal advice.
> that would have been
I meant to say "publishing would have been" illegal.