1. GitHub Docs
"Reviewing dependency changes in a pull request." This document states: "If there are any vulnerable dependencies
you can see a warning in the dependency review UI... You should ask the contributor to update the dependency to the patched version or a later release." This directly supports updating the dependency before merging.
2. GitHub Docs
"About Dependabot alerts." This page explains the purpose of the alerts and the recommended action: "When GitHub detects a vulnerable dependency in one of your repositories
we generate a Dependabot alert... We recommend that you update the vulnerable dependency as soon as possible."
3. GitHub Docs
"Viewing and updating vulnerable dependencies in your repository." This guide details the remediation workflow
emphasizing that the primary action is to resolve the vulnerability
which typically involves updating the dependency version. It notes
"When you have fixed the vulnerability
you can close the alert."