compromise (with) (one's) principles
To forsake, ignore, or otherwise go against one's fundamental beliefs or virtues. I never thought he would compromise his principles just to get ahead in business like that. Jane felt really guilty about compromising with her principles when she didn't turn her friends into the police after she saw them stealing.