Configure Dependabot Updates
ciEnableDependabot defaults to true, so ciGenerateGithubWorkflow also generates .github/dependabot.yml from ciDependabotConfig. The default is a single weekly github-actions update at the repository root, which is what the ZIO-ecosystem repos use. Add more ecosystems, directories, intervals or groups explicitly; nothing is auto-detected:
import zio.sbt.githubactions.{DependabotConfig, DependabotGroup, DependabotUpdate}
ThisBuild / ciDependabotConfig := DependabotConfig(
Seq(
DependabotUpdate("github-actions"),
DependabotUpdate(
"npm",
directory = "/website",
openPullRequestsLimit = Some(5),
groups = Seq(DependabotGroup("docusaurus", patterns = Seq("@docusaurus/*", "react")))
)
)
)
The action versions in the generated workflows come from the plugin, so ciGenerateGithubWorkflow would revert a Dependabot bump of them. Each github-actions update therefore lists the generated workflows under exclude-paths, and Dependabot only bumps hand-written workflows. Set ciDependabotExcludeGenerated := false to drop that list.
Unlike .scala-steward.conf, the file is fully owned by the plugin: a hand-written dependabot.yml is overwritten on the next ciGenerateGithubWorkflow, and ciCheckGithubWorkflow fails if it differs from the generated one. Set ciEnableDependabot := false to opt out; the plugin then deletes only a dependabot.yml carrying its "autogenerated" header, never a hand-written one.