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

Include option to exclude some maven test dependencies from the build-info #1893

Open
shashwathrai opened this issue Apr 2, 2023 · 4 comments
Labels
feature request New feature or request

Comments

@shashwathrai
Copy link

Is your feature request related to a problem? Please describe.
Include an option to exclude some maven dependencies based on scope(Eg: test) from the build-info being pushed to Artifactory.

Describe the solution you'd like to see
We would like to have an option in jfrog-cli to exclude maven test dependencies from the build-info.

Describe alternatives you've considered
NA

Additional context
NA

@shashwathrai shashwathrai added the feature request New feature or request label Apr 2, 2023
@shashwathrai shashwathrai changed the title Option to exclude some maven dependencies based on scope(Eg: test) from the build-info Option to exclude some maven test dependencies from the build-info Apr 2, 2023
@shashwathrai shashwathrai changed the title Option to exclude some maven test dependencies from the build-info Include option to exclude some maven test dependencies from the build-info Apr 2, 2023
@yahavi
Copy link
Member

yahavi commented Apr 13, 2023

Hi @shashwathrai,
Thanks for using the JFrog CLI.

The build-info represents the actual status of the build and therefore excluding information from it would impact its reliability.
What is the reason you'd like to achieve this goal?

@wilvdb
Copy link

wilvdb commented Mar 28, 2024

We have the same need. Our customers don't want to get security violations from xray scanning (jfrog build-scan) on test dependencies.

@Hurz
Copy link

Hurz commented Oct 18, 2024

We run into the same problem. We want to provide a build info for our SAAS components in Artifactory and the result of the JFrog CLI Build information contains test dependencies even when the test compile is skipped with the Maven paramerter "-Dmaven.test.skip=true". The result can therefore not be used to create a SBOM through Artifactory for a deliverable artifact.

In addition we want to know security implications of our deliverables in our SAAS context. Test components are a nice to know but should not let our builds fail. With an option to enable or disable test components we could separate such an information.

Another addition is that the build info also lists provided components. It should be an option to skip those as well. Example: We want to create a SBOM for a customer that gets some kind of deliverable. It should only contain artifacts that are actually delivered and not parts that are part of the customers existing infrastructure / runtime.

@Maetis
Copy link

Maetis commented Jan 17, 2025

Like @wilvdb's customers, our developers don't want their builds to fail because of security issues in test dependencies.

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

No branches or pull requests

5 participants