Bitzu

AZ-400 ยท Security and compliance scanning

Dependabot alerts and updates

Dependency graph, Dependabot alerts, security updates vs version updates, dependabot.yml, grouping and schedules, dependency review action.

Key points

  • Dependency graph: packages a repository uses.
  • Dependabot alerts: a package has a known advisory.
  • Security updates: PRs bumping to a patched version.
  • Version updates: dependabot.yml (version: 2, package-ecosystem, directory, schedule.interval) keep dependencies current.
  • Groups: fewer pull requests.
  • Dependency review action: checks PRs for newly introduced vulnerable dependencies.

Source: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference

Practice questions

Single choice

What value does the top-level version key in dependabot.yml take?

  1. 1
  2. 2
  3. 3
  4. latest
Show answer

Answer: B. 2

The configuration syntax is always version 2.

Select all that apply

Which values are valid for schedule.interval in dependabot.yml?

  1. daily
  2. weekly
  3. monthly
  4. hourly
  5. biweekly
Show answer

Answer: A. daily, B. weekly, C. monthly

Valid intervals include daily, weekly and monthly (plus quarterly, semiannually, yearly and cron). Hourly and biweekly do not exist.

True or false

True or false: open-pull-requests-limit in dependabot.yml also changes how many security update pull requests can be open at once.

Show answer

Answer: False

False. The setting applies to version updates (default 5). Security update pull requests have a separate fixed limit of 10 that cannot be changed.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More AZ-400 topics in this module