Godoy represented Panama in all four of its 2017 Gold Cup matches, comprising three group stage matches and one quarterfinal. He tallied one assist and was named to the Best XI of the group stages, but ultimately scored an own goal in Panama's quarterfinal match against Costa Rica and club teammate Marco Ureña, resulting in the end of the tournament for Panama and Costa Rica's advancement to the semifinals.