nerdexam
Microsoft

GH-500 · Question #36

Which key is required in the update settings of the Dependabot configuration file?

The correct answer is B. package-ecosystem. In the dependabot.yml configuration file, each entry under the 'updates' key requires two mandatory fields: 'package-ecosystem' and 'directory'. The 'package-ecosystem' key (B) specifies which package manager Dependabot should monitor (e.g., npm, pip, maven, docker). Without…

Configure and use Dependabot and Dependency Review

Question

Which key is required in the update settings of the Dependabot configuration file?

Options

  • Acommit-message
  • Bpackage-ecosystem
  • Cassignees
  • Drebase-strategy

How the community answered

(38 responses)
  • A
    5% (2)
  • B
    89% (34)
  • C
    3% (1)
  • D
    3% (1)

Explanation

In the dependabot.yml configuration file, each entry under the 'updates' key requires two mandatory fields: 'package-ecosystem' and 'directory'. The 'package-ecosystem' key (B) specifies which package manager Dependabot should monitor (e.g., npm, pip, maven, docker). Without it, Dependabot cannot know which manifest files to scan. 'commit-message' (A), 'assignees' (C), and 'rebase-strategy' (D) are all optional configuration keys that customize Dependabot's behavior but are not required.

Topics

#Dependabot configuration#`dependabot.yml`#Required fields#Package ecosystems

Community Discussion

No community discussion yet for this question.

Full GH-500 Practice