GH-500 · Question #24
What is the purpose of push protection?
The correct answer is D. to scan and block the code that contains secrets before it reaches the repository. Push protection intercepts a git push at the moment it occurs - before the commit is stored in the repository - and blocks it if a secret is detected. The developer is notified and must either remove the secret or explicitly bypass the protection. This is a preventive control…
Question
What is the purpose of push protection?
Options
- Ato scan and block the code that contains vulnerabilities before it reaches the repository
- Bto validate the push by the code owner
- Cto define license requirements for the repository
- Dto scan and block the code that contains secrets before it reaches the repository
How the community answered
(48 responses)- A4% (2)
- C2% (1)
- D94% (45)
Explanation
Push protection intercepts a git push at the moment it occurs - before the commit is stored in the repository - and blocks it if a secret is detected. The developer is notified and must either remove the secret or explicitly bypass the protection. This is a preventive control, stopping exposure at the source. It does not scan for code vulnerabilities (answer A), validate code ownership (answer B), or manage licensing (answer C).
Topics
Community Discussion
No community discussion yet for this question.