What's Changed
Scala Steward now offers opt-in vulnerability checks for dependency updates. To enable them, start Scala Steward with --enable-vulnerability-check.
When enabled, Steward checks dependencies against OSV and adds security context to update pull requests:
- Updates that fix known vulnerabilities list the relevant advisories and receive a security-fix label when
--add-labelsis enabled. - If a proposed version is still affected, the PR lists the advisories and a version that fixes them.
- A version that avoids an advisory can skip a configured cooldown when the normally selected update would leave or introduce that advisory. To disable this behavior, set
updates.cooldown.skipForVulnerabilityCheck = false.
The check sends dependency coordinates and versions to OSV. You can exclude dependencies with vulnerabilityCheck.exclude or configure an OSV-compatible endpoint with --osv-api-host. Results are cached for --cache-ttl.
See the documentation for details.
This feature got contributed by @matejcerny
🚀 Enhancements
- Add optional vulnerability checks to dependency updates by @matejcerny in #4037
- Cache vulnerability results by @matejcerny in #4047
- Override cooldown for vulnerability checks by @matejcerny in #4050
- Make the vulnerability URL configurable by @matejcerny in #4058
🐛 Bug Fixes
📦 Artifact Migrations
- chore: Switch sbt-shading to sbt organization by @tgodzik in #4049
- Add artifact migrations for mongo4s and logging4s (org.mongo4s / org.… by @shadowsmind in #4051
🌱 Dependency Updates
- Update mill-runner-launcher_3 to 1.3.1 by @scala-steward in #4036
- Update logback-classic to 1.6.6 by @scala-steward in #4038
- Update sbt, scripted-plugin to 1.13.1 by @scala-steward in #4042
- Update doctest-runtime, sbt-doctest to 0.13.3 by @scala-steward in #4048
- Update scalafix-core to 0.14.10 by @scala-steward in #4052
- Update commons-lang3 to 3.22.0 by @scala-steward in #4054
- Update bcprov-jdk15to18 to 1.87 by @scala-steward in #4056
- Update logback-classic to 1.6.7 by @scala-steward in #4057
Other Changes
New Contributors
- @zAPFy made their first contribution in #4044
- @matejcerny made their first contribution in #4037
- @shadowsmind made their first contribution in #4051
Full Changelog: v0.39.4...v0.40.0