GitHub Copilot — Question 7
As a developer with write access, you navigate to a code scanning alert in your repository. When will GitHub close this alert?
Answer options
- A. after you triage the pull request containing the alert
- B. after you fix the code by committing within the pull request
- C. when you use data-flow analysis to find potential security issues in code
- D. after you find the code and click the alert within the pull request
Correct answer: D
Explanation
GitHub will close the alert when you find the relevant code and click on the alert within the pull request, indicating that you have reviewed it. The other options do not directly lead to the closure of the alert, as simply triaging, fixing, or analyzing does not complete the alert resolution process.