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 San Francisco Giants over the Los Angeles Dodgers 3-1 on Thursday night.