Microsoft

GH-500 practice question 20

GitHub Advanced Security · free question 20 of 20

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.

Practice the whole free set

Answer all 20 free GH-500 questions with instant feedback, or unlock all 86 questions with Learn and Exam modes.