GITHUB-ADVANCED-SECURITY practice question 5 of 15

– [Describe the GHAS Security Features and Functionality] What is a security policy?

Full set: 75 questions
Answer options
A: An automatic detection of security vulnerabilities and coding errors in new or modified code
B: A security alert issued to a community in response to a vulnerability
C: A file in a GitHub repository that provides instructions to users about how to report a security vulnerability Correct answer
D: An alert about dependencies that are known to contain security vulnerabilities
Correct Answer:
C. A file in a GitHub repository that provides instructions to users about how to report a security vulnerability
Explanation

In the context of GitHub, a security policy is a specific file, SECURITY.md, that is added to a repository. The purpose of this file is to provide clear, public instructions to security researchers and users on the responsible and private process for reporting security vulnerabilities they may have discovered in the project. By centralizing these instructions, repository maintainers can manage incoming vulnerability reports more effectively and prevent premature public disclosure. GitHub integrates this file by linking to it from the repository's "Security" tab and when users open new issues.

Why Incorrect

A. This describes code scanning (e.g., using CodeQL), a feature that automatically analyzes code for potential security vulnerabilities.
B. This describes a GitHub Security Advisory, which is a formal mechanism for disclosing, discussing, and resolving a vulnerability.
D. This describes Dependabot alerts, a feature that automatically detects and alerts developers about vulnerable dependencies in their project.

References

1. GitHub Docs, "Adding a security policy to your repository." This official documentation explicitly states, "To give people instructions for reporting security vulnerabilities in your project, you can add a SECURITY.md file to your repository's root, docs, or .github folder." It details how this file functions as the repository's security policy.

2. GitHub Docs, "About coordinated disclosure of security vulnerabilities." This document outlines best practices for vulnerability reporting and references the security policy (SECURITY.md) as a key tool for maintainers: "To facilitate reporting, add a security policy to your repository... GitHub will display a link to your security policy on your repository's security tab."

Scroll to Top