Madison Bumgarner came within an out of his first major league shutout and earned his first victory of the season, and Freddy Sanchez drove in two runs to help lead the Giants over the Dodgers 3-1 on Thursday night, according to an Associated Press report.