nerdexam
Microsoft

GH-500 · Question #100

After defining a secret scanning custom pattern, what is the final step before publishing the pattern?

The correct answer is D. performing a dry run. Before publishing a custom pattern, GitHub requires you to perform a dry run. A dry run tests the pattern against the repository's existing content and shows which matches it would generate - without creating actual alerts. This step is critical for validating that the regex is…

Configure and use secret scanning

Question

After defining a secret scanning custom pattern, what is the final step before publishing the pattern?

Exhibit

GH-500 question #100 exhibit

Options

  • Adefining a custom pattern
  • Badding additional match requirements
  • Cenabling push protection
  • Dperforming a dry run

How the community answered

(25 responses)
  • A
    4% (1)
  • C
    4% (1)
  • D
    92% (23)

Explanation

Before publishing a custom pattern, GitHub requires you to perform a dry run. A dry run tests the pattern against the repository's existing content and shows which matches it would generate - without creating actual alerts. This step is critical for validating that the regex is accurate, identifying potential false positives, and tuning the pattern before it goes live. Skipping the dry run and publishing directly could flood the repository with noisy or irrelevant alerts.

Topics

#Secret Scanning#Custom Patterns#Dry Run#GHAS

Community Discussion

No community discussion yet for this question.

Full GH-500 Practice