Like there was no other option, like, hmmm, helping Poland fight nazis, and winning the war at the beginning?
The soviets tried forming an anti-nazi alliance before the war started. Promising to send in a million men. They were turned down and upon realising they were on their own, seeked out a non-aggression pact with the Nazis (which everyone had already done up to that point).