microsoft / microsoft/component-detection

No Detector for Scala's SBT (Simple Build Tool)

Open
#1,057 4 comments 1 reaction 0 assignees View on GitHub

@zhenghao104 is already working on this.

Since Dec 23, 2025.

  • #1601 by @zhenghao104 — open
detector:maven status:requirements type:feature
Dominant language
C#
Stars
553
Forks
135
Avg merge
20h 58m
Merged PRs (30d)
6

Description

Currently today, Component-Detection has no way to scan and detect Scala's .sbt file https://www.scala-sbt.org/ and detect if there are vulnerable libraries being added to the project. The only way for a SBT project to be scanned is to convert .sbt to .pom. This has a limitation of only doing the root project and does not apply to sub projects.

This issue is to start a conversation around if SBT will be a supported detector alongside Maven for Scala projects.

Potential Solution:
Similar to how Maven detector analyzes the dependency tree generated from .pom. SBT has their own way to generate the dependency tree by using the SBT shell with command "Compile/dependencyTree" that shows the library dependency tree, including transitive dependencies.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing Maven detector and the SBT shell command Compile/dependencyTree described in the issue. Compare dependency-tree output for root and subprojects, and consider the open pull request before starting; done means SBT projects can be scanned for direct and transitive vulnerable libraries without converting to .pom.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
devtools, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.