-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add workspaceRelationship
#7889
Open
DmitriyLewen
wants to merge
7
commits into
aquasecurity:main
Choose a base branch
from
DmitriyLewen:feat/workspace-relationship
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
91d415d
feat: add `workspace` relationship
DmitriyLewen c8555ef
refactor: RelationshipWorkspace == 2
DmitriyLewen 59d8f7c
feat(parser): use `relationshipWorkspace` for maven modules
DmitriyLewen 1a25771
feat(bom): add `relationshipWorkspace` to fill relationships
DmitriyLewen 74f4a7b
mage test:updateGolden
DmitriyLewen 745bc9c
mage docs:generate
DmitriyLewen 542a380
test(bom): add test for multimodule project
DmitriyLewen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -445,6 +445,7 @@ pkg: | |
relationships: | ||
- unknown | ||
- root | ||
- workspace | ||
- direct | ||
- indirect | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
"Name": "poco", | ||
"Identifier": { | ||
"PURL": "pkg:conan/[email protected]", | ||
"UID": "312753cebe80c0eb" | ||
"UID": "1c5e3b385e0d9c68" | ||
}, | ||
"Version": "1.9.4", | ||
"Relationship": "direct", | ||
|
@@ -50,7 +50,7 @@ | |
"Name": "bzip2", | ||
"Identifier": { | ||
"PURL": "pkg:conan/[email protected]", | ||
"UID": "6e2ff993df2d9107" | ||
"UID": "fcee910413ab7575" | ||
}, | ||
"Version": "1.0.8", | ||
"Indirect": true, | ||
|
@@ -68,7 +68,7 @@ | |
"Name": "expat", | ||
"Identifier": { | ||
"PURL": "pkg:conan/[email protected]", | ||
"UID": "71c2d92d60f7f21c" | ||
"UID": "1a3fe92a43620875" | ||
}, | ||
"Version": "2.4.8", | ||
"Indirect": true, | ||
|
@@ -86,7 +86,7 @@ | |
"Name": "openssl", | ||
"Identifier": { | ||
"PURL": "pkg:conan/[email protected]", | ||
"UID": "13c605db6afa69dd" | ||
"UID": "d009c32d2d560ed1" | ||
}, | ||
"Version": "1.1.1q", | ||
"Indirect": true, | ||
|
@@ -104,7 +104,7 @@ | |
"Name": "pcre", | ||
"Identifier": { | ||
"PURL": "pkg:conan/[email protected]", | ||
"UID": "4e01c692a67e12e4" | ||
"UID": "452827dd216c920e" | ||
}, | ||
"Version": "8.43", | ||
"Indirect": true, | ||
|
@@ -126,7 +126,7 @@ | |
"Name": "sqlite3", | ||
"Identifier": { | ||
"PURL": "pkg:conan/[email protected]", | ||
"UID": "43bc9c58092c7c9e" | ||
"UID": "8e926335e2fce900" | ||
}, | ||
"Version": "3.39.2", | ||
"Indirect": true, | ||
|
@@ -144,7 +144,7 @@ | |
"Name": "zlib", | ||
"Identifier": { | ||
"PURL": "pkg:conan/[email protected]", | ||
"UID": "d6faf8d6dfd1985" | ||
"UID": "dfef9b967a82df9f" | ||
}, | ||
"Version": "1.2.12", | ||
"Indirect": true, | ||
|
@@ -165,7 +165,7 @@ | |
"PkgName": "pcre", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:conan/[email protected]", | ||
"UID": "4e01c692a67e12e4" | ||
"UID": "452827dd216c920e" | ||
}, | ||
"InstalledVersion": "8.43", | ||
"FixedVersion": "8.45", | ||
|
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
"PkgName": "github.com/docker/distribution", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/docker/[email protected]%2Bincompatible", | ||
"UID": "9d949a7b01249e68" | ||
"UID": "782e16d5a74c9fa6" | ||
}, | ||
"InstalledVersion": "v2.7.1+incompatible", | ||
"FixedVersion": "v2.8.0", | ||
|
@@ -54,7 +54,7 @@ | |
"PkgName": "github.com/open-policy-agent/opa", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/open-policy-agent/[email protected]", | ||
"UID": "e89e2b0d8977e2a" | ||
"UID": "3e43f458a7c60c10" | ||
}, | ||
"InstalledVersion": "v0.35.0", | ||
"FixedVersion": "0.37.0", | ||
|
@@ -101,7 +101,7 @@ | |
"PkgName": "golang.org/x/text", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/golang.org/x/[email protected]", | ||
"UID": "3050088ce9eb2ce4" | ||
"UID": "9c987ed7494d95be" | ||
}, | ||
"InstalledVersion": "v0.3.6", | ||
"FixedVersion": "0.3.7", | ||
|
@@ -134,7 +134,7 @@ | |
"PkgName": "github.com/docker/distribution", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/docker/[email protected]%2Bincompatible", | ||
"UID": "2f7f0fa81860b8f1" | ||
"UID": "97673687db393443" | ||
}, | ||
"InstalledVersion": "v2.7.1+incompatible", | ||
"FixedVersion": "v2.8.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
"PkgName": "github.com/docker/distribution", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/docker/[email protected]%2Bincompatible", | ||
"UID": "9d949a7b01249e68" | ||
"UID": "782e16d5a74c9fa6" | ||
}, | ||
"InstalledVersion": "v2.7.1+incompatible", | ||
"FixedVersion": "v2.8.0", | ||
|
@@ -54,7 +54,7 @@ | |
"PkgName": "golang.org/x/text", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/golang.org/x/[email protected]", | ||
"UID": "3050088ce9eb2ce4" | ||
"UID": "9c987ed7494d95be" | ||
}, | ||
"InstalledVersion": "v0.3.6", | ||
"FixedVersion": "0.3.7", | ||
|
@@ -87,7 +87,7 @@ | |
"PkgName": "github.com/docker/distribution", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/docker/[email protected]%2Bincompatible", | ||
"UID": "2f7f0fa81860b8f1" | ||
"UID": "97673687db393443" | ||
}, | ||
"InstalledVersion": "v2.7.1+incompatible", | ||
"FixedVersion": "v2.8.0", | ||
|
@@ -121,7 +121,7 @@ | |
"PkgName": "github.com/docker/distribution", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/docker/[email protected]%2Bincompatible", | ||
"UID": "3ad40723ed2fce22" | ||
"UID": "48e3a06649df4bd4" | ||
}, | ||
"InstalledVersion": "v2.7.1+incompatible", | ||
"FixedVersion": "v2.8.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
"PkgName": "github.com/docker/distribution", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/docker/[email protected]%2Bincompatible", | ||
"UID": "9d949a7b01249e68" | ||
"UID": "782e16d5a74c9fa6" | ||
}, | ||
"InstalledVersion": "v2.7.1+incompatible", | ||
"FixedVersion": "v2.8.0", | ||
|
@@ -54,7 +54,7 @@ | |
"PkgName": "github.com/open-policy-agent/opa", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/open-policy-agent/[email protected]", | ||
"UID": "e89e2b0d8977e2a" | ||
"UID": "3e43f458a7c60c10" | ||
}, | ||
"InstalledVersion": "v0.35.0", | ||
"FixedVersion": "0.37.0", | ||
|
@@ -101,7 +101,7 @@ | |
"PkgName": "golang.org/x/text", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/golang.org/x/[email protected]", | ||
"UID": "3050088ce9eb2ce4" | ||
"UID": "9c987ed7494d95be" | ||
}, | ||
"InstalledVersion": "v0.3.6", | ||
"FixedVersion": "0.3.7", | ||
|
@@ -134,7 +134,7 @@ | |
"PkgName": "github.com/docker/distribution", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/docker/[email protected]%2Bincompatible", | ||
"UID": "2f7f0fa81860b8f1" | ||
"UID": "97673687db393443" | ||
}, | ||
"InstalledVersion": "v2.7.1+incompatible", | ||
"FixedVersion": "v2.8.0", | ||
|
@@ -168,7 +168,7 @@ | |
"PkgName": "github.com/docker/distribution", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:golang/github.com/docker/[email protected]%2Bincompatible", | ||
"UID": "3ad40723ed2fce22" | ||
"UID": "48e3a06649df4bd4" | ||
}, | ||
"InstalledVersion": "v2.7.1+incompatible", | ||
"FixedVersion": "v2.8.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
"Name": "Newtonsoft.Json", | ||
"Identifier": { | ||
"PURL": "pkg:nuget/[email protected]", | ||
"UID": "d4249b2442e303e9" | ||
"UID": "1cec16ca9d4718aa" | ||
}, | ||
"Version": "12.0.3", | ||
"Relationship": "direct", | ||
|
@@ -43,7 +43,7 @@ | |
"Name": "NuGet.Frameworks", | ||
"Identifier": { | ||
"PURL": "pkg:nuget/[email protected]", | ||
"UID": "6fa0c117039de82a" | ||
"UID": "ed284c615e250d47" | ||
}, | ||
"Version": "5.7.0", | ||
"Relationship": "direct", | ||
|
@@ -66,7 +66,7 @@ | |
"PkgName": "Newtonsoft.Json", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:nuget/[email protected]", | ||
"UID": "d4249b2442e303e9" | ||
"UID": "1cec16ca9d4718aa" | ||
}, | ||
"InstalledVersion": "12.0.3", | ||
"FixedVersion": "13.0.1", | ||
|
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
"Name": "jquery", | ||
"Identifier": { | ||
"PURL": "pkg:npm/[email protected]", | ||
"UID": "53ca18565a4b6a47" | ||
"UID": "2a8ffed0b32cf950" | ||
}, | ||
"Version": "3.3.9", | ||
"Licenses": [ | ||
|
@@ -40,7 +40,7 @@ | |
"Name": "lodash", | ||
"Identifier": { | ||
"PURL": "pkg:npm/[email protected]", | ||
"UID": "31eadfcf58a6b128" | ||
"UID": "29795971f23e7bf6" | ||
}, | ||
"Version": "4.17.4", | ||
"Licenses": [ | ||
|
@@ -57,7 +57,7 @@ | |
"PkgName": "jquery", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:npm/[email protected]", | ||
"UID": "53ca18565a4b6a47" | ||
"UID": "2a8ffed0b32cf950" | ||
}, | ||
"InstalledVersion": "3.3.9", | ||
"FixedVersion": "3.4.0", | ||
|
@@ -190,7 +190,7 @@ | |
"PkgName": "lodash", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:npm/[email protected]", | ||
"UID": "31eadfcf58a6b128" | ||
"UID": "29795971f23e7bf6" | ||
}, | ||
"InstalledVersion": "4.17.4", | ||
"FixedVersion": "4.17.12", | ||
|
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
"Name": "click", | ||
"Identifier": { | ||
"PURL": "pkg:pypi/[email protected]", | ||
"UID": "37edb5c90a97272e" | ||
"UID": "d76da06fc75f0439" | ||
}, | ||
"Version": "8.1.3", | ||
"Relationship": "direct", | ||
|
@@ -40,7 +40,7 @@ | |
"Name": "werkzeug", | ||
"Identifier": { | ||
"PURL": "pkg:pypi/[email protected]", | ||
"UID": "4176be111ad01070" | ||
"UID": "d14d05cca13c7a6b" | ||
}, | ||
"Version": "0.14", | ||
"Relationship": "direct", | ||
|
@@ -51,7 +51,7 @@ | |
"Name": "colorama", | ||
"Identifier": { | ||
"PURL": "pkg:pypi/[email protected]", | ||
"UID": "895013c17f373da3" | ||
"UID": "c7ed705c1cc43242" | ||
}, | ||
"Version": "0.4.6", | ||
"Indirect": true, | ||
|
@@ -66,7 +66,7 @@ | |
"PkgName": "werkzeug", | ||
"PkgIdentifier": { | ||
"PURL": "pkg:pypi/[email protected]", | ||
"UID": "4176be111ad01070" | ||
"UID": "d14d05cca13c7a6b" | ||
}, | ||
"InstalledVersion": "0.14", | ||
"FixedVersion": "0.15.3", | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any idea why UID is different now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added
workspaceRelationshi
p as 2:trivy/pkg/fanal/types/package.go
Lines 17 to 21 in 542a380
to correct sorting:
trivy/pkg/fanal/types/package.go
Lines 233 to 240 in 927c6e0
So when we calc UID - we use
4
instead of3
for IndirectRelationship (as example)