There are two sources, which contradict each other.
Notice "Ought not" Remember that "ought to" loses the "to" in the negative. Instead of "ought not to," we say "ought not."
You say that someone ought not to do something: She ought not to go.
You can also use oughtn’t: She oughtn’t to go.
So, what is correct: ought not to do or ought not do?