GitHub Copilot — Question 16
What happens when you enable secret scanning on a private repository?
Answer options
- A. Repository administrators can view Dependabot alerts.
- B. Dependency review, secret scanning, and code scanning are enabled.
- C. Your team is subscribed to security alerts.
- D. GitHub performs a read-only analysis on the repository.
Correct answer: D
Explanation
The correct answer is D because enabling secret scanning allows GitHub to perform a read-only analysis to identify any secrets in the code. Options A, B, and C do not directly relate to the function of secret scanning, as they refer to other features or alerts that are not specifically tied to the secret scanning process.