See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates for documentation on how to set this up.