BOSTON -- J.A. Happ pitched eight scoreless innings, Clint Frazier hit a two-run home run and the New York Yankees beat the Boston Red Sox 8-0 Saturday night for their 10th consecutive win.

The victory is New York's 12th straight over Boston dating to last season, tying the Yankees' longest winning streak in baseball's most historic rivalry. It also dropped New York's magic number to one to clinch its fourth consecutive postseason berth.

The Yankees improved to 31-21 and ensured their 28th consecutive winning season, the second-longest streak in big league history behind their 39 in a row from 1926-64.

Happ (2-2) allowed four hits and struck out nine. It's his second win of the season over the Red Sox. He allowed one run over 5 2/3 innings in a victory against them last month in New York.

Happ has a 3.25 ERA over 44 1/3 innings pitched this season. That is second on the team among pitchers with at least five starts, behind only ace Gerrit Cole (3.00).

Frazier finished with three of the Yankees' 11 hits.

Boston starter Chris Mazza (1-2) lasted four innings, giving up four runs on five hits and three walks.

He struggled from the outset, giving up a hit and pair of walks to load the bases in the first.

Gio Urshela took advantage, putting the Yankees on the scoreboard with a sacrifice fly that scored DJ LeMahieu. Frazier made it 2-0 with a line drive single to left field, bringing in Aaron Judge.

The Yankees benefited from two errors by Boston shortstop Xander Bogaerts to add two more runs in the fourth.

First, Bogaerts couldn't get the ball out of his glove to start a double play, allowing Frazier to advance to second. Frazier then scored off a Kyle Higashioka's single to right field.

With runners on first and third, Tyler Wade hit a ground ball to Bogaerts, who stepped on second for a force out but overthrew first baseman Bobby Dalbec as he tried to turn the double play, allowing Mike Tauchman to score.

TRAINER'S ROOM

Yankees: Giancarlo Stanton, Gary Sanchez and Gleyber Torres had the night off. All three are expected to be back in the lineup for Sunday's finale.

Red Sox: 2B Christian Arroyo left the game with back spasms. ... Outfielder Alex Verdugo sat out Saturday with left hamstring soreness after leaving in the third inning of Friday's loss. Manager Ron Roenicke said his status for Sunday is to be determined. ... IF/OF Yairo Munoz was placed on the 10-day injured list with a lower back strain.

CHAPMAN APPEAL

Yankees manager Aaron Boone said closer Aroldis Chapman's appeal of a three-game suspension for throwing a fastball near the head of Tampa Bay's Michael Brosseau on Sept. 2 may not be heard this season.

"There could be another hearing and more information to be inserted in there," Boone said. "It could be something that could even be put off until next year."

Chapman has previously said the pitch was not intentional.

UP NEXT

Yankees: Right-hander Deivi Garcia (2-1, 3.28 ERA) will make his fifth start of the season in Sunday's series finale. He gave up six hits and three runs over seven innings to get the victory in the Yankees' 20-6 win over the Blue Jays on Tuesday.

Red Sox: Right-hander Tanner Houck (1-0, 0.00) allowed two hits, no runs and struck out seven over five innings in his lone start of the season last week at Miami.