What is a security policy?
Show answerHide answer
Correct answer: C A file in a GitHub repository that provides instructions to users about how to report a security vulnerability
Explanation
Explanation:In the context of GitHub repositories, a security policy is a specific, user-facing document that establishes a clear and secure communication channel for security researchers and users to report potential vulnerabilities. Its primary purpose is to streamline the reporting process, not to describe automated detection or alerting systems.
Correct Option:
C. A file in a GitHub repository that provides instructions to users about how to report a security vulnerability.
This is the precise definition. It is typically a SECURITY.md file placed in the repository's root, .github, or docs directory. It outlines secure reporting procedures, often including a private disclosure email address or link.
Incorrect Options:
A. An automatic detection of security vulnerabilities and coding errors in new or modified code.
This describes code scanning (e.g., CodeQL) or secret scanning, which are automated analysis tools, not a policy document.
B. A security alert issued to a community in response to a vulnerability.
This describes a GitHub Security Advisory (GHSA), which is a published advisory about a vulnerability, often coordinated with maintainers.
D. An alert about dependencies that are known to contain security vulnerabilities.
This describes a Dependabot alert, which is an automated notification about a vulnerable dependency detected in a repository's manifest files.
Reference:
GitHub documentation, "Adding a security policy to your repository," states: "You can give your project's security policy to give people instructions for responsibly reporting security vulnerabilities in your project." It instructs users to create a SECURITY.md file.