The Soviets invaded Poland less than 10 days later, following the terms of the pact signed with Germany.
There was a pact signed between Germany and the Soviets.