Skip to content

Commit

Permalink
Merge pull request #32 from Badya/project-supplier-field
Browse files Browse the repository at this point in the history
Use root document supplier field value for project modules in SBOM
  • Loading branch information
loosebazooka authored Aug 23, 2023
2 parents 2865aec + 6840c0b commit 87ce3d9
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,9 @@ private SpdxPackage createProjectPackage(ResolvedComponentResult resolvedCompone
+ " has no specified version");
version = "NOASSERTION";
}
var supplier = "NOASSERTION";
if (pi == describesProject) {
supplier = documentInfo.getPackageSupplier().orElse("NOASSERTION");
if (supplier.equals("NOASSERTION")) {
logger.warn("supplier not set for project " + pi.getName());
}
var supplier = documentInfo.getPackageSupplier().orElse("NOASSERTION");
if (supplier.equals("NOASSERTION")) {
logger.warn("supplier not set for project " + pi.getName());
}
SpdxPackageBuilder builder =
doc.createPackage(
Expand Down

0 comments on commit 87ce3d9

Please sign in to comment.