Repository navigation
Set up automated dependency updates - #262
Merged
Merged
Conversation
Add configuration for two update bots: - .scala-steward.conf configures Scala Steward for the sbt build (library dependencies, sbt plugins, sbt itself and Scala versions). Scala 3 is pinned to the 3.3 LTS line, because a newer minor version would produce TASTy that 3.3 users can't read. scala-library is pinned to 2.13 so the 3.x standard library shipped with Scala 3.8+ isn't offered to the 2.13 cross-build. PRs are opened at most weekly. - .github/dependabot.yml enables weekly, grouped Dependabot updates for GitHub Actions, which keeps the SHA pins from #253 current. sbt is deliberately left to Scala Steward to avoid duplicate PRs. Scala Steward still has to be enabled by listing dispatch/reboot in VirtusLab/scala-steward-repos. Closes #236 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approved
The review identifies no active issues with the dependency-update configuration.
No open issues 🎉
What changed in this PR
Adds automated dependency updates to address #236, with Scala Steward managing the sbt build and Dependabot maintaining the GitHub Actions SHA pins introduced in #253.
Changes:
- Configures Scala Steward with a seven-day PR frequency and pins Scala dependencies to the 3.3 LTS and 2.13 lines.
- Configures weekly GitHub Actions updates grouped into a single Dependabot PR.
- Keeps the bots’ scopes separate to avoid duplicate updates.
Scala Steward still requires registration with the planned public instance before updates begin.
| File | Description |
|---|---|
.scala-steward.conf |
Sets the update frequency and Scala compatibility pins. |
.github/dependabot.yml |
Enables grouped weekly GitHub Actions updates. |
Review effort: Balanced
[Medium impact] The PR appears safe to merge. SummaryAdds weekly dependency-update configuration:
No actionable issues found. farmdawgnation explicitly notes that Scala Steward enrollment is a follow-up. Reviews (1) · Last reviewed commit: "Set up automated dependency updates" · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds configuration for automated dependency updates, as proposed in #236. sbt updates go to Scala Steward and GitHub Actions updates go to Dependabot.
.scala-steward.conf: configures Scala Steward for the sbt build. It covers library dependencies, sbt plugins, the sbt version inbuild.properties, and Scala versions, and opens PRs at most once a week.scala3-compilerandscala3-library). A Scala 3 compiler can't read TASTy from a newer minor version, so publishing with 3.9+ would break users still on 3.3. Moving to a newer LTS should be a deliberate decision, not a bot PR.scala-libraryis pinned to 2.13. From Scala 3.8 on, the standard library ships asscala-library3.x, and the pin stops that from being offered to the 2.13 cross-build..github/dependabot.yml: weekly Dependabot updates for thegithub-actionsecosystem, grouped into a single PR. This keeps the commit-SHA pins from Pin GitHub Actions to SHAs and restrict token permissions #253 current. sbt is left out on purpose so the two bots don't open duplicate PRs.Follow-up required
Scala Steward only runs once the repo is on a Scala Steward instance. The plan is to use VirtusLab's public instance, which
unfiltered/unfilteredalready uses. To join, add- dispatch/reboottorepos-github.mdinVirtusLab/scala-steward-repos. That instance then opens PRs from its fork, so the existingpull_requestCI runs on them without any secrets. Dependabot starts working as soon as this merges.Testing
.scala-steward.confpasses Scala Steward's ownvalidate-repo-config(0.39.4). As a negative control, a copy with a malformedupdates.pinentry is rejected..github/dependabot.ymlpasses validation against the SchemaStoredependabot-2.0JSON schema. As a negative control, an unknownpackage-ecosystemis rejected.Closes #236
🤖 Generated with Claude Code