GH-500 · Question #97
What do you need to do before you can define a custom pattern for a repository?
The correct answer is C. Enable secret scanning on the repository. Custom patterns are an extension of the secret scanning engine. Before you can create or define any custom patterns, the underlying secret scanning feature must be enabled on the repository. Without secret scanning active, there is no scanning engine to evaluate custom patterns…
Question
What do you need to do before you can define a custom pattern for a repository?
Options
- AAdd a secret scanning custom pattern.
- BProvide match requirements for the secret format.
- CEnable secret scanning on the repository.
- DProvide a regular expression for the format of your secret pattern
How the community answered
(22 responses)- B5% (1)
- C91% (20)
- D5% (1)
Explanation
Custom patterns are an extension of the secret scanning engine. Before you can create or define any custom patterns, the underlying secret scanning feature must be enabled on the repository. Without secret scanning active, there is no scanning engine to evaluate custom patterns against. Enabling secret scanning is therefore a hard prerequisite - the option to define custom patterns only becomes available after it is turned on.
Topics
Community Discussion
No community discussion yet for this question.