I mean, when it comes to guessing the code, she doesn't attack, even if you input the wrong code. I hardly call that a bad ending.
And once you get the key, she says that you're free to go (although it's the fake key). Again, she doesn't attack.
After that, the way to get the good ending is simply to let her open the exit door and juke her.