GITHUB-ADVANCED-SECURITY practice question 12 of 15

– [Configure and Use Dependency Management] Which Dependabot configuration fields are required? (Each answer presents part of the solution. Choose three.)

Full set: 75 questions
Answer options
A: directory Correct answer
B: package-ecosystem Correct answer
C: milestone
D: schedule.interval Correct answer
E: allow
Correct Answer:
A. directory; B. package-ecosystem; D. schedule.interval
Explanation

The dependabot.yml configuration file requires a minimum set of fields for each package manager entry defined under the updates key. According to the official GitHub documentation, three fields are mandatory to define a basic update check:
1. package-ecosystem: Specifies the package manager to use (e.g., npm, maven, pip).
2. directory: Defines the location of the package manifest files (e.g., / for the root directory).
3. schedule.interval: Sets the frequency for checking for new versions (e.g., daily, weekly). Without these three fields, Dependabot cannot identify which dependencies to monitor, where to find them, or how often to check for updates.

Why Incorrect

C. milestone: This is an optional field used to automatically assign a specific milestone to all pull requests created by Dependabot for that configuration.
E. allow: This is an optional field used to explicitly specify which dependencies Dependabot should update, which is useful for limiting updates to a specific subset.

References

1. GitHub Docs, "Configuration options for the dependabot.yml file." This official documentation provides a comprehensive list of all available configuration options and explicitly labels which are required and which are optional.

Section: "Required properties for each package manager": This section explicitly lists package-ecosystem, directory, and schedule (which contains the required interval field) as mandatory for each entry in the updates array.

Section: "Optional properties for all updates": This section lists milestone and allow as optional configurations that provide more granular control over Dependabot's behavior.

Scroll to Top