microsoft / microsoft/component-detection
No Detector for Scala's SBT (Simple Build Tool)
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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