nerdexam
Microsoft

GH-500 · Question #17

What is a prerequisite to define a custom pattern for a repository?

The correct answer is B. Enable secret scanning. Custom patterns are an extension of the secret scanning feature - they allow you to supplement GitHub's built-in detection rules with your own regex-based patterns. Because custom patterns are a component of secret scanning, secret scanning must be enabled on the repository…

Configure and use secret scanning

Question

What is a prerequisite to define a custom pattern for a repository?

Options

  • AChange the repository visibility to Internal.
  • BEnable secret scanning.
  • CClose other secret scanning alerts.
  • DSpecify additional match criteria.

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    89% (32)
  • C
    6% (2)
  • D
    3% (1)

Explanation

Custom patterns are an extension of the secret scanning feature - they allow you to supplement GitHub's built-in detection rules with your own regex-based patterns. Because custom patterns are a component of secret scanning, secret scanning must be enabled on the repository first. Repository visibility, existing alert status, and additional match criteria are not required prerequisites to define a custom pattern.

Topics

#Secret scanning#Custom patterns#Prerequisites#Repository configuration

Community Discussion

No community discussion yet for this question.

Full GH-500 Practice