Hilchos Lashon Hara chapter 10, section 10
The rules above also apply if the perpetrator did a transgression between man and God, but only if one sees that he did it many times on purpose and that the sin is something everyone knows is wrong. We explained this in detail earlier (4:7).