-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cyclonedx): Add the dependency graph
While CycloneDX's `Dependency` data structure would allow for a nested graph approach, [1] says that "Graphs with one node of depth are recommended", so each `Dependency` entry only lists its own respective direct dependencies. Resolves #3906. [1]: https://cyclonedx.org/use-cases/#dependency-graph Signed-off-by: Sebastian Schuberth <[email protected]>
- Loading branch information
1 parent
5d2b5a6
commit 101f5e4
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,5 +263,17 @@ | |
"url": "pkg:npm/%40ort/[email protected]", | ||
"comment": "Package-URL of the project" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "NPM:@ort:project-with-findings:1.0", | ||
"dependsOn": [ | ||
"NPM:@ort:no-license-file:1.0", | ||
"NPM:@ort:license-file:1.0", | ||
"NPM:@ort:license-file-and-additional-licenses:1.0", | ||
"NPM:@ort:concluded-license:1.0", | ||
"NPM:@ort:declared-license:1.0" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters