One definition that is often given for integrity is that you do things the right way even when no one is looking.
But I don’t think that goes far enough.
The question to consider is actually, how do you still do the right thing, not only when no one is looking, but also when you are under tremendous pressure to do something you don’t think is correct?