Skip to main content
Version: 2.x

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.

ZIO Chat

๐ŸŒŸ Greetings from ZIO Chat! ๐ŸŒŸ Have questions about ZIO? Look no further! I'm here to be your ZIO guru. Whether you're a seasoned pro or just starting out, I've got answers tailored just for you. Fire away with your ZIO queries, and I'll hit you back with the best insights I've got. Let's dive into the world of ZIO together!