GitHub Copilot — Question 5
Assuming that default security and analysis settings have not been changed at the repository, organization, or enterprise level, which scenario would generate a dependency graph for the repository?
Answer options
- A. when a public repository has a new dependency added to its manifest file
- B. when a private repository is forked to be used as a dependent
- C. when a private repository has a new dependency added to its manifest file
- D. when a public repository is forked to be used as a dependent
Correct answer: C
Explanation
The correct answer is C because adding a new dependency to the manifest file of a private repository triggers the generation of a dependency graph. Options A and D involve public repositories, which do not automatically create a dependency graph with new dependencies in the same way. Option B refers to forking a private repository, which also does not generate a dependency graph.