GH-500 · Question #99
Which details do you have to provide to create a custom pattern for secret scanning? Each answer presents part of the solution. (Choose two.)
The correct answer is A. the secret format C. the name of the pattern. Creating a custom pattern requires exactly two mandatory inputs: (A) the secret format, typically expressed as a regular expression that defines what the secret looks like, and (C) a name for the pattern so it can be identified in alerts. Additional match requirements…
Question
Which details do you have to provide to create a custom pattern for secret scanning? Each answer presents part of the solution. (Choose two.)
Exhibit
Options
- Athe secret format
- Ba list of repositories to scan
- Cthe name of the pattern
- Dadditional match requirements for the secret format
How the community answered
(51 responses)- A88% (45)
- B8% (4)
- D4% (2)
Explanation
Creating a custom pattern requires exactly two mandatory inputs: (A) the secret format, typically expressed as a regular expression that defines what the secret looks like, and (C) a name for the pattern so it can be identified in alerts. Additional match requirements (before/after context, additional regex) are optional refinements, and specifying a list of repositories to scan is not part of pattern creation - patterns are applied at the repository or organization level where they are defined.
Topics
Community Discussion
No community discussion yet for this question.
