Question
What do you need to do before you can define a custom pattern for a repository?
- A. Add a secret scanning custom pattern.
- B. Provide match requirements for the secret format.
- C. Enable secret scanning on the repository. Correct
- D. Provide a regular expression for the format of your secret pattern
Explanation
Secret scanning has to be enabled on a repository before it can be configured, and custom patterns are part of that configuration. Adding the custom pattern is the act of defining it, so it cannot come first. Providing the regular expression and any additional match requirements are also steps within defining the pattern, not prerequisites for it.