The deal is expected to pay Moore between $2.5 million to $3 million, according to MLB.com, which first reported the sides were nearing a deal.
He was an All-Star with the Tampa Bay Rays in 2013 when he went 17-4 with a 3.29 ERA but had Tommy John surgery in 2014 and missed most of the 2014 and '15 seasons. The Rays traded Moore to the Giants during the 2016 season. He tied for the National League lead with 15 losses in 2017.
He is 54-56 with a 4.56 ERA in eight major league seasons.