Microsoft

GH-500 practice question 14

GitHub Advanced Security · free question 14 of 20

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.

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.