A secret scanning alert should be closed as "used in tests" when a secret is:
A.
In the readme.md file.
B.
In a test file.
C.
Solely used for tests.
D.
Not a secret in the production environment.
The Answer Is:
C
This question includes an explanation.
Explanation:
If a secret is intentionally used in a test environment and poses no real-world security risk, you may close the alert with the reason "used in tests". This helps reduce noise and clarify that the alert was reviewed and accepted as non-critical.
Just being in a test file isn't enough unless its purpose is purely for testing.