Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
So it is stated an outgoing transaction from an address would reveal some of the private key. That's why we don't reuse an address.
Technically address attaching is also a zero amount transaction. But does it reveal any part of the private key?
No, because when you attach an address, a zero-value transaction is done to the address. I.e. it's an incoming transaction to the target address and doesn't reveal the private key.
Required, but never shown