Skip to content

Commit a1653d7

Browse files
authored
Merge pull request #770 from davids-work/main
Include author for components when available in Cargo metadata
2 parents 1b0b996 + 4afc95f commit a1653d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cargo-cyclonedx/src/generator.rs

+4
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ impl SbomGenerator {
246246
.as_ref()
247247
.map(|s| NormalizedString::new(s));
248248

249+
if !package.authors.is_empty() {
250+
component.author = Some(NormalizedString::new(&package.authors.join(", ")));
251+
}
252+
249253
component
250254
}
251255

0 commit comments

Comments
 (0)