GitHub Copilot — Question 12
A secret scanning alert should be closed as “used in tests” when a secret is:
Answer options
- A. in a test file.
- B. solely used for tests.
- C. in the readme.md file.
- D. not a secret in the production environment.
Correct answer: B
Explanation
The correct answer is B because a secret that is solely used for testing purposes indicates that it is not a risk in production environments. Option A is incorrect as a test file may contain other content, and options C and D do not specifically define the secret's intended use in relation to testing.