Question
What is a prerequisite to define a custom pattern for a repository?
- A. Change the repository visibility to Internal.
- B. Enable secret scanning. Correct
- C. Close other secret scanning alerts.
- D. Specify additional match criteria.
Explanation
Custom patterns extend secret scanning, so secret scanning must be enabled on the repository before you can configure one. Additional match criteria are optional settings within the pattern form, not a prerequisite. Repository visibility does not need to be changed to Internal, and existing alerts have no effect on creating a pattern.