In his second start since returning from Tommy John surgery, Johnny Cueto pitched five scoreless innings and the Giants beat the Miami Marlins 2-1.