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…
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)- A3% (1)
- B89% (32)
- C6% (2)
- D3% (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
Community Discussion
No community discussion yet for this question.