Skip to content

Commit

Permalink
fix: pkg.homepage, not pkg.repository.url
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthHater committed Mar 12, 2020
1 parent d8e299c commit 213e52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CycloneDX/CycloneDXSbomCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class CycloneDXSbomCreator {
private addExternalReferences(pkg: any): Array<ExternalReference> {
const externalReferences: Array<ExternalReference> = [];
if (pkg.homepage) {
this.pushURLToExternalReferences('website', pkg.repository.url, externalReferences);
this.pushURLToExternalReferences('website', pkg.homepage, externalReferences);
}
if (pkg.bugs && pkg.bugs.url) {
this.pushURLToExternalReferences('issue-tracker', pkg.bugs.url, externalReferences);
Expand Down

0 comments on commit 213e52d

Please sign in to comment.