Rudy Giuliani has until nearly the end of August to turn over outstanding discovery sought by Smartmatic as part of its $2.7 billion defamation lawsuit against Fox, a judge ruled Wednesday.