Webb (11-5) allowed five hits and walked two in his second straight win. He pitched seven effective innings in a 6-4 victory at Oakland last weekend.
“His changeup was very good,” Pirates manager Derek Shelton said. “He was able to execute it throughout the count, at any point.”
LaMonte Wade Jr. hit a solo homer, helping San Francisco to its fifth win in seven games. Wade also doubled and scored on Joc Pederson’s double in the first.
Wade is hitting .187 (14 for 75) in 30 games since leaving the injured list, but 5 for 13 (.385) in his last six games.
“My at-bats have been better,” he said. “I’m trying to keep working on it, one at-bat at a time. I think it’s definitely going in my direction.”
Castro had two hits in Pittsburgh’s fifth loss in six games. Tyler Beede (1-2), who broke into the majors with San Francisco in 2018, allowed two runs and three hits in three innings while serving as the opener for the Pirates.
Webb improved to 8-3 in 13 starts this year at Oracle Park. The Pirates loaded the bases in the eighth on Tucupita Marcano’s double and walks to pinch-hitter Josh VanMeter and Bryan Reynolds, but Webb escaped the jam by striking out Ben Gamel.
Webb appreciated being left in the game by manager Gabe Kapler.
“After I walked Reynolds, Kap was like, ‘OK, let’s go,’” Webb said.
Webb also helped himself with a nice defensive play in the third, scooping up Kevin Newman’s soft grounder and lunging for first base for the out.
Wade led off the third with a drive to right-center for his sixth homer. It was Wade’s fourth multihit game of the season.
Pirates: 3B Ke’Bryan Hayes was out of the lineup because of back spasms. Castro replaced him. Shelton reiterated that Hayes, 25, might receive occasional breaks to keep him playable overall. “We’ll try to get him as much relief as possible,” Shelton said. “Hopefully we can alleviate the discomfort.” ... CF Reynolds is continuing to play regularly despite an oblique injury. The switch hitter started Saturday, one day after his streak of reaching base in 10 consecutive games ended.
Giants: Kapler said C Joey Bart, who is dealing with a sprained right ankle, could play if needed in an emergency. Bart is day to day. He ran on the field during batting practice Saturday.
The Pirates and Giants conclude their season series on Sunday at Oracle Park. Zach Thompson (3-9, 5.08 ERA) starts for Pittsburgh, and Alex Wood (8-9, 4.17 ERA) pitches for San Francisco. Wood is 3-4 with a 4.42 ERA in 10 starts at home, compared to 5-5 with a 3.94 ERA in 12 road outings.
Fantasy baseball pitcher rankings, lineup advice for Friday's MLB games
Everything you need to know to place your MLB bets and set your fantasy baseball lineups for Friday, September 30.
2022 MLB playoffs: Clinching scenarios, bracket and schedule
The race to reach October is on. Here's the latest on which teams will be playing in the postseason.
Fantasy baseball rankings for 2023 points leagues
Here are Tristan H. Cockcroft's way-too-early rankings for ESPN points leagues for the 2023 fantasy baseball season.
Fantasy baseball forecaster: Pitcher projections for the next 10 days
Keep up to date on who is pitching -- and how well they're expected to do -- with our forecaster, which provides a rolling 10-day outlook of every team's probable starting pitchers with game score projections.
Fantasy baseball forecaster: Team hitting ratings
Stay ahead of the game and optimize your fantasy baseball hitters with our forecaster, which provides a rolling 10-day outlook of every team's hitting matchups as well as the potential for stolen bases.
The biggest regular-season series in a decade? Why Mets-Braves showdown could shake up October
This weekend's matchup doesn't just matter in New York and Atlanta -- it has implications for baseball fans everywhere.