You're good friends with someone. She (or he) confides in you that she's been cheating on her/his spouse/significant other. Assuming you've had at least some contact with the significant other, under what circumstances would you tell him/her what you knew?
What if you were friends with both people?
EDIT: Would you think less of your friend for cheating?