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

Add ability to configure via Cargo.toml metadata #103

Merged
merged 3 commits into from
Feb 6, 2022

Conversation

allisonsierra
Copy link
Contributor

Add GeneratedSbom struct and moved file output responsbility to it

Resolves #74

Paired with @amy-keibler

Signed-off-by: Allie Sierra 85902135+allisonsierra@users.noreply.github.com

Add GeneratedSbom struct and moved file output responsbility to it

Resolves CycloneDX#74

Paired with @amy-keibler

Signed-off-by: Allie Sierra <85902135+allisonsierra@users.noreply.github.com>
@allisonsierra allisonsierra requested a review from a team as a code owner February 3, 2022 23:07
We were setting the CLI SbomConfig to always have something set
for included_dependencies. This meant that during the config merge
this SbomConfig was always overriding package metadata configuration.
Now we set included_dependencies to None so that the merge works as
expected.

Signed-off-by: Allie Sierra <85902135+allisonsierra@users.noreply.github.com>
Adds the --top-level CLI argument to allow for configuration in
manifest metadata to be overridden on the command line. Placed
all and --top-level in argument group to make them mutually exclusive
options.

Signed-off-by: Allie Sierra <85902135+allisonsierra@users.noreply.github.com>
Copy link
Collaborator

@amy-keibler amy-keibler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally ✅

@amy-keibler amy-keibler merged commit 9cadc26 into CycloneDX:main Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Cargo.toml metadata for command inputs
2 participants