1. GitHub Docs
"Managing code scanning alerts for your repository." This official documentation states
"You can dismiss an alert if you don't think it's a problem... Common reasons for dismissing an alert are that the code is not used in production
or that the alert is a false positive result." This directly supports dismissing alerts for code used only in testing.
2. Microsoft Learn
"Configure and manage code scanning in your repository
" Unit: "Manage code scanning alerts." This module
relevant to GitHub administration
explains the process of triaging alerts. It notes that when dismissing an alert
you can select a reason
such as "Used in tests
" which confirms this is an intended use case for the dismissal feature.
3. GitHub Docs
"About code scanning alerts." This document clarifies the lifecycle of an alert
explaining that when code is fixed
"the alert is closed" automatically after the branch is rescanned. This confirms that manual dismissal is incorrect for fixed code.