It is usually used to indicate that an assumption has accompanied the action. I told you that secret in good faith (hoping you would not repeat it). The contractor quoted the price in good faith (that he would not charge extra).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.