Western nations like the UK and France immediately declared war upon Germany following the invasion of Poland but did nothing in response to the Soviet invasion of Poland on 17 Sep 1939 and the Soviet invasion of the Baltic states in the spring of 1940. Why was this? Western leaders were certainly anti-Communist and though the Molotov-Ribbentrop Pact was secret, certainly there were signs suggesting that the two nations were working together.
This older answer should be of interest.