SBoM of Docker image contains test dependencies #36287
Labels
for: external-project
For an external project and not something we can fix
status: invalid
An issue that we don't feel is valid
Hi,
To reproduce this issue, simply create a Spring Boot demo application via Spring Initializr (e.g. Spring 2.7.13, Java 17, Maven). Note that the demo project has spring-boot-starter as compile scoped dependency and spring-boot-starter-test as test scoped dependency.
Now create a Docker image with mvn spring-boot:build-image. The resulting image contains SBoM files which list the test dependencies (in this case: spring-boot-starter-test), This is an issue as vulnerability scanners use these meta files to check the image for security violations. In our case this leads to various false positives that have to be checked manually.
The SBoM should not contain test dependencies in general.
Thank you and best regards
Nils
The text was updated successfully, but these errors were encountered: