GitHub Copilot — Question 2
Which of the following statements most accurately describes push protection for secret scanning custom patterns?
Answer options
- A. Push protection is enabled by default for new custom patterns.
- B. Push protection must be enabled for all, or none, of a repository’s custom patterns.
- C. Push protection is not available for custom patterns.
- D. Push protection is an opt-in experience for each custom pattern.
Correct answer: D
Explanation
The correct answer is D because push protection requires explicit activation for each custom pattern. Option A is incorrect as push protection is not enabled by default. Option B is misleading since it suggests a binary choice that does not reflect the flexibility of managing individual patterns. Option C is false as custom patterns can have push protection if opted in.