Skip to content

Commit

Permalink
Merge pull request #770 from davids-work/main
Browse files Browse the repository at this point in the history
Include author for components when available in Cargo metadata
  • Loading branch information
Shnatsel authored Nov 30, 2024
2 parents 1b0b996 + 4afc95f commit a1653d7
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 a1653d7

Please sign in to comment.