Configure Scala Steward
ciEnableScalaSteward defaults to true, so ciGenerateGithubWorkflow generates scala-steward.yml automatically, which runs scala-steward-org/scala-steward-action on a daily schedule (ciScalaStewardSchedule, default "0 0 * * *") to open dependency-update pull requests, authenticating as a GitHub App via the SCALA_STEWARD_GITHUB_APP_ID, SCALA_STEWARD_GITHUB_APP_INSTALLATION_ID and SCALA_STEWARD_GITHUB_APP_PRIVATE_KEY repository secrets. Set it to false to opt out:
ThisBuild / ciEnableScalaSteward := false
ciScalaStewardTimeoutMinutes (default 45), ciScalaStewardPermissions (default contents: read โ the action authenticates via the GitHub App's installation token, since github-app-auth-only is always set, so no write scope is needed by default) and ciScalaStewardWorkflowEnv (default empty; a repo needing JVM tuning during dependency resolution sets JDK_JAVA_OPTIONS/similar here) all override the generated job.
The first time this feature renders a non-empty .scala-steward.conf from ciScalaStewardConfig, it scaffolds that file at the repository root, if it does not already exist. Like .github/release-drafter.yml, it is never rewritten or deleted afterward, even if ciScalaStewardConfig changes or ciEnableScalaSteward is turned back off โ repo-specific pins/ignores/grouping are meant to be hand-customized once scaffolded, and ciCheckGithubWorkflow's drift check does not cover it either, only .github/workflows/scala-steward.yml does. An all-default ciScalaStewardConfig renders to nothing, so most repos never see this file at all unless they set it.
This is purely additive: it does not change ci.yml's own triggers or jobs. Because the feature defaults to on, a repo that already hand-maintains a scala-steward.yml (as every ZIO-ecosystem repo currently does) has that file overwritten by the generated workflow the next time ciGenerateGithubWorkflow runs, exactly like ci.yml โ silently, with no warning โ and ciCheckGithubWorkflow fails until the regenerated file is committed. The hand-edited .scala-steward.conf is unaffected. To keep a hand-written workflow, set ciEnableScalaSteward := false: when disabled, the plugin only deletes a scala-steward.yml it generated itself โ identified by its "autogenerated" header โ and never a hand-written one. To customize the generated workflow instead, use ciScalaStewardSchedule, ciScalaStewardTimeoutMinutes, ciScalaStewardPermissions, ciScalaStewardWorkflowEnv and ciScalaStewardConfig.