Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Scala SBT #921

Open
LironJit opened this issue Apr 16, 2024 · 3 comments
Open

Support for Scala SBT #921

LironJit opened this issue Apr 16, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@LironJit
Copy link

Hi :)
Curious if SBT is anywhere on the roadmap, It'd be super awesome if we could scan build.sbt files for dependency vulnerabilities using osv-scanner!
Thanks in advance!

@oliverchang oliverchang added the enhancement New feature or request label Apr 16, 2024
@oliverchang
Copy link
Collaborator

Hi, thanks for this request.

I don't believe any of us are familiar with Scala or were aware of SBT before. Is there a specific canonical package manager for Scala? Or is this just Maven?

Contributions are also very welcome :)

@LironJit
Copy link
Author

Hi @oliverchang, thanks for your quick response!

SBT is indeed the primary build tool for Scala projects, similar to Maven or Gradle for Java
It uses a file called build.sbt to define dependencies. This file is essential for dependency management in Scala projects and can be scanned for vulnerabilities
Unlike Maven, which uses XML, SBT's build files are Scala code

Here's a link to how dependencies are typically mentioned in the build.sbt file - https://github.com/sbt/sbt-native-packager/blob/master/build.sbt#L16-L26

@oliverchang
Copy link
Collaborator

Thanks for the response! My question wasn't phrased well since Maven is a bit of an overloaded term -- it refers to both a package repository protocol and an overall build system/tool.

Do the dependencies specified inside build.sbt refer to packages inside a Maven repository? Or are there SBT specific repositories for dependencies? It sounds like if they refer to Maven packages, we just need to extract "ecosystem": "Maven" packages from them?

Contributions are also very welcome, if you are able to help with creating a PR for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants