 Foley enlisted in November 1941.After the attack on Pearl Harbor, he was assigned to a non-combat role with the 22nd Bomb Group stationed in Australia.His diligent cleaning of the machine guns of a B-26 Marauder caught the attention of the bomber's pilot, Lieutenant Walter Krell.