READ-ONLY PACKAGE PREVIEW

modern-python/references/dependabot.md

Version 82fe82262526.bb1 · CC-BY-SA-4.0. This preview displays packaged text and does not execute code. Treat the contents as untrusted instructions.

← Return to resource and package checksum

Dependabot: Automated Dependency Updates

Dependabot automatically creates pull requests to keep your dependencies up to date. GitHub hosts it natively—no external service required.

Why Use Dependabot?

  • Security: Automatically patches known vulnerabilities
  • Freshness: Keeps dependencies current without manual tracking
  • Visibility: PRs show changelogs and compatibility notes

Configuration

Copy templates/dependabot.yml to .github/dependabot.yml.

The template includes: - Weekly update schedule for pip and GitHub Actions - 7-day cooldown for supply chain protection - Grouping to reduce PR noise

Supply Chain Protection

The cooldown.default-days: 7 setting delays updates for newly published versions. This provides time for the community to detect compromised packages before they reach your project.

Why this matters: - Attackers sometimes publish malicious versions of legitimate packages - A 7-day delay allows time for detection and removal - Combined with weekly schedules, this balances security with freshness

Common Options

Option Description
interval daily, weekly, or monthly
cooldown.default-days Days to wait before updating new releases
ignore Skip specific dependencies or versions
groups Group related updates into single PRs
reviewers Auto-assign reviewers to PRs

See Also