ST. PETERSBURG, Fla. — The Tampa Bay Rays made the most of a replay reversal Saturday. Alex Cobb led the way.

Cobb pitched two-hit ball into the eighth inning and the Rays beat Rick Porcello and the Boston Red Sox, 1-0.

“Their guy was outstanding,” Tampa Bay Manager Kevin Cash said. “Our guy was just a tick better.”

Cobb (7-6) retired 11 straight batters over one stretch. Alex Colome got the final four outs for his 24th save.

The Red Sox put runners on second and third with one out in the ninth.

Hanley Ramirez then struck out swinging. After Andrew Benintendi was walked intentionally, Chris Young popped out to end the game.

“A great game,” said Mookie Betts, who had one of Boston’s three hits. “You can’t ask for a better pitchers’ duel.”

Porcello (4-11) became the majors’ first 11-game loser despite pitching a gem. He allowed six hits, struck out seven and walked none in his first complete game of the season.

“There’s a lot that’s out of your control as far as wins and losses go,” said Porcello, who was 11-2 at the All-Star break a year ago.

“I’ve just got to go out there and give us a chance to win every fifth day, and we’re going to win a lot more games than we’re going to lose.”

Jesus Sucre drove in the game’s only run with a sacrifice fly in the second after singles by Steven Souza Jr. and Brad Miller.

The inning was kept alive by a replay reversal of a double-play call. A 94-second review determined Adeiny Hechavarria had beaten Dustin Pedroia’s throw to first base. Porcello then hit Shane Peterson with a pitch before Sucre hit a fly ball to center, driving in Souza.

“A bang-bang play at first that they overturned to give them an extra out, and the sacrifice fly, otherwise that’s the end of an inning,” Red Sox Manager John Farrell said.

“So unfortunately the way things have gone for Rick, he pitches well and yet we come up on the short end offensively.”

Xander Bogaerts beat out an infield chopper in the first, Betts singled to center in the third and Mitch Moreland doubled in the ninth for Boston’s only hits.

Mallex Smith had two of Tampa Bay’s six hits, including a two-out triple in the seventh.

The win got the Rays within 4 1/2 games of the AL East-leading Red Sox with one game left before the All-Star break.

“When you’re walking off the mound you feel like that was just cool to be part of it,” Cobb said. “The magnitude of it being the Red Sox and going into the All-Star break and us being in and out of the wild card – all those factors come into play when you think about tonight.”

Porcello received no run support for the ninth time in his 19 starts. He is 0-3 against the Rays this season after going 5-0 in six starts against them last season.

Porcello is the second reigning Cy Young Award winner to have 11 losses by the All-Star break the following season. Gaylord Perry did it in 1973.

DAVE DOMBROWSKI, the president of baseball operations for the Red Sox, said the team isn’t seeking rotation help and may stand pat as the non-waiver trade deadline looms at the end of the month.

“We’re not looking for starting pitching,” Dombrowksi said.

A starting staff that includes Chris Sale, Drew Pomeranz and Porcello has been bolstered by the return of David Price, who is 4-2 in eight starts since coming back from an arm injury.

Doug Fister was claimed off waivers June 23 from the Los Angeles Angels and Eduardo Rodriguez (right knee) is scheduled to return July 17.

“You can always get deeper, but I don’t know how much deeper you can get at this particular time,” Dombrowski said.

Dombrowski said that except for a handful of teams, most already are planning to wait “as late as they possibly can” before deciding how to approach the trading deadline.