Skip to content

Set up automated dependency updates - #262

Merged
farmdawgnation merged 1 commit into
mainfrom
farmdawgnation/set-up-dependency-update
Nov 22, 2026
Merged

farmdawgnation merged 1 commit into
mainfrom
farmdawgnation/set-up-dependency-update

Conversation

@farmdawgnation

Copy link
Copy Markdown
Member

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 in build.properties, and Scala versions, and opens PRs at most once a week.
    • Scala 3 is pinned to the 3.3 LTS line (scala3-compiler and scala3-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-library is pinned to 2.13. From Scala 3.8 on, the standard library ships as scala-library 3.x, and the pin stops that from being offered to the 2.13 cross-build.
  • .github/dependabot.yml: weekly Dependabot updates for the github-actions ecosystem, 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/unfiltered already uses. To join, add - dispatch/reboot to repos-github.md in VirtusLab/scala-steward-repos. That instance then opens PRs from its fork, so the existing pull_request CI runs on them without any secrets. Dependabot starts working as soon as this merges.

Testing

  • .scala-steward.conf passes Scala Steward's own validate-repo-config (0.39.4). As a negative control, a copy with a malformed updates.pin entry is rejected.
  • .github/dependabot.yml passes validation against the SchemaStore dependabot-2.0 JSON schema. As a negative control, an unknown package-ecosystem is rejected.
  • No build or source changes, so the sbt test matrix isn't affected.

Closes #236

🤖 Generated with Claude Code

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>
Copilot AI balanced review requested due to automatic review settings November 21, 2026 12:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds weekly dependency-update configuration:

  • Dependabot proposes grouped updates for GitHub Actions each week.
  • Scala Steward is set to propose weekly sbt updates within supported Scala lines.

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

@farmdawgnation
farmdawgnation merged commit 9071df7 into main Nov 22, 2026
13 checks passed
@farmdawgnation
farmdawgnation deleted the farmdawgnation/set-up-dependency-update branch November 22, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Set up dependency update for this repository

2 participants