GITHUB-ADVANCED-SECURITY practice question 15 of 15

– [Describe GitHub Advanced Security Best Practices] As a contributor, you discovered a vulnerability in a repository. Where should you look for the instructions on how to report the vulnerability?

Full set: 75 questions
Answer options
A: support.md
B: readme.md
C: contributing.md
D: security.md Correct answer
Correct Answer:
D. security.md
Explanation

The SECURITY.md file is the officially recognized and standardized location within a GitHub repository for security-related information. Its primary purpose is to provide a security policy that instructs contributors and researchers on how to responsibly report security vulnerabilities they have discovered. When a SECURITY.md file is present in a repository's root, .github, or docs directory, GitHub automatically links to it from the repository's "Security" tab and when a user attempts to create a new issue, guiding them to the correct reporting process.

Why Incorrect

A. support.md: This file provides instructions on how to get general help or support for the project, which is distinct from the secure process of reporting vulnerabilities.
B. readme.md: This file serves as the main landing page for a repository, containing a general project description, and is not the designated place for security policies.
C. contributing.md: This file outlines guidelines for general contributions, such as code style and pull request procedures, not the specific protocol for vulnerability disclosure.

References

1. GitHub Docs. "Adding a security policy to your repository." GitHub, Inc. Accessed May 2024. In this document, the section "About security policies" 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."

2. GitHub Docs. "Setting guidelines for repository contributors." GitHub, Inc. Accessed May 2024. This page describes the purpose of CONTRIBUTING.md, SUPPORT.md, and other community health files, clearly distinguishing their roles from that of SECURITY.md. It confirms SECURITY.md is for "your project's security policy."

Scroll to Top