forked from guacsec/guac
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cdx support Signed-off-by: Nadgowda, Shripad <[email protected]> * changed node type for image Signed-off-by: Nadgowda, Shripad <[email protected]> * test cases added Signed-off-by: Nadgowda, Shripad <[email protected]> * typos fixed and tests added Signed-off-by: Nadgowda, Shripad <[email protected]> * added copyright notice Signed-off-by: Nadgowda, Shripad <[email protected]> Signed-off-by: pxp928 <[email protected]> Signed-off-by: Nadgowda, Shripad <[email protected]> Signed-off-by: pxp928 <[email protected]>
- Loading branch information
Showing
20 changed files
with
21,392 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
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 |
---|---|---|
|
@@ -244,6 +244,55 @@ var ( | |
ContainedArtifact: rsaPubFile, | ||
}, | ||
} | ||
|
||
// CycloneDX Testdata | ||
|
||
cdxTopLevelPack = assembler.PackageNode{ | ||
Name: "gcr.io/distroless/static:nonroot", | ||
Digest: []string{"sha256:6ad5b696af3ca05a048bd29bf0f623040462638cb0b29c8d702cbb2805687388"}, | ||
Purl: "pkg:oci/static:nonroot?repository_url=gcr.io/distroless", | ||
CPEs: nil, | ||
} | ||
|
||
cdxTzdataPack = assembler.PackageNode{ | ||
Name: "tzdata", | ||
Digest: nil, | ||
Purl: "pkg:deb/debian/tzdata@2021a-1+deb11u6?arch=all&distro=debian-11", | ||
CPEs: []string{ | ||
"cpe:2.3:a:tzdata:tzdata:2021a-1\\+deb11u6:*:*:*:*:*:*:*"}, | ||
} | ||
|
||
cdxNetbasePack = assembler.PackageNode{ | ||
Name: "netbase", | ||
Digest: nil, | ||
Purl: "pkg:deb/debian/[email protected]?arch=all&distro=debian-11", | ||
CPEs: []string{ | ||
"cpe:2.3:a:netbase:netbase:6.3:*:*:*:*:*:*:*"}, | ||
} | ||
|
||
cdxBasefilesPack = assembler.PackageNode{ | ||
Name: "base-files", | ||
Digest: nil, | ||
Purl: "pkg:deb/debian/[email protected]+deb11u5?arch=amd64&distro=debian-11", | ||
CPEs: []string{ | ||
"cpe:2.3:a:base-files:base-files:11.1\\+deb11u5:*:*:*:*:*:*:*"}, | ||
} | ||
|
||
CycloneDXNodes = []assembler.GuacNode{cdxTopLevelPack, cdxBasefilesPack, cdxNetbasePack, cdxTzdataPack} | ||
CyloneDXEdges = []assembler.GuacEdge{ | ||
assembler.DependsOnEdge{ | ||
PackageNode: cdxBasefilesPack, | ||
PackageDependency: cdxTopLevelPack, | ||
}, | ||
assembler.DependsOnEdge{ | ||
PackageNode: cdxNetbasePack, | ||
PackageDependency: cdxTopLevelPack, | ||
}, | ||
assembler.DependsOnEdge{ | ||
PackageNode: cdxTzdataPack, | ||
PackageDependency: cdxTopLevelPack, | ||
}, | ||
} | ||
) | ||
|
||
type mockSigstoreVerifier struct{} | ||
|
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
Oops, something went wrong.