Skip to content

Commit

Permalink
Include author for components when available in Cargo metadata
Browse files Browse the repository at this point in the history
Signed-off-by: David Smitmanis <[email protected]>
  • Loading branch information
davids-work committed Nov 22, 2024
1 parent 6bdfc87 commit 4afc95f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cargo-cyclonedx/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ impl SbomGenerator {
.as_ref()
.map(|s| NormalizedString::new(s));

if !package.authors.is_empty() {
component.author = Some(NormalizedString::new(&package.authors.join(", ")));
}

component
}

Expand Down

0 comments on commit 4afc95f

Please sign in to comment.