Skip to content

Commit

Permalink
fix tests for node local sbom generation
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Bertschy <[email protected]>
  • Loading branch information
matthyx committed Nov 29, 2024
1 parent fd7ae2d commit ffb5ea8
Show file tree
Hide file tree
Showing 59 changed files with 122 additions and 164,850 deletions.
5,262 changes: 1 addition & 5,261 deletions configurations/expected-result/CVEs/golang-dynamic-simple.json

Large diffs are not rendered by default.

85 changes: 1 addition & 84 deletions configurations/expected-result/CVEs/golang-simple.json
Original file line number Diff line number Diff line change
@@ -1,84 +1 @@
{
"apiVersion": "spdx.softwarecomposition.kubescape.io/v1beta1",
"kind": "VulnerabilityManifest",
"metadata": {
"annotations": {
"kubescape.io/image-id": "docker.io/qorbani/golang-hello-world@sha256:a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f",
"kubescape.io/status": "ready"
},
"creationTimestamp": "2024-01-16T20:39:11Z",
"labels": {
"kubescape.io/context": "non-filtered",
"kubescape.io/image-id": "docker-io-qorbani-golang-hello-world-sha256-a14f3fbf3d5d1c4a000",
"kubescape.io/image-name": "docker-io-qorbani-golang-hello-world"
},
"name": "docker.io-qorbani-golang-hello-world-sha256-a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f-34c31f",
"namespace": "kubescape",
"resourceVersion": "1",
"uid": "115ed1e3-8722-41df-a1bd-d0d6509ee2b4"
},
"spec": {
"metadata": {
"report": {
"createdAt": null
},
"tool": {
"databaseVersion": "sha256:5a5f72d5828b204f21cd1e15f95f6fa8ec214da0ad0d970bd91f5dee43100cb3",
"name": "",
"version": "v0.73.4"
},
"withRelevancy": false
},
"payload": {
"descriptor": {
"configuration": null,
"db": {
"built": "2023-05-29T01:31:19Z",
"checksum": "sha256:5a5f72d5828b204f21cd1e15f95f6fa8ec214da0ad0d970bd91f5dee43100cb3",
"error": null,
"location": "/home/nonroot/.cache/grype/db/5",
"schemaVersion": 5
},
"name": "",
"version": ""
},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R5cGUiOiJsYXllcnMiLCJkaWZmX2lkcyI6WyJzaGEyNTY6NjA2MWU5NjNmZmEyMmZjODhjYTcwZGExYzY2NTg1MDFiZmY0YThkN2YwNjdmYTA2MGQ2NGVmNmRlOTkyMTVjMSIsInNoYTI1Njo3YjEzOWEyYzM4MDRhNmMyYThhZTY2ZDBiMjVlM2U2MDA0ZGVmNzU4NDViMTcwNzE2ZjY3OWM0ZjI5OTNiY2M4Il19fQ==",
"imageID": "sha256:aa864723bf43f2eb3caaf588f172271fd131ed02d8c82207b0c6d8871670c056",
"imageSize": 5760416,
"layers": [
{
"digest": "sha256:6061e963ffa22fc88ca70da1c6658501bff4a8d7f067fa060d64ef6de99215c1",
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 0
},
{
"digest": "sha256:7b139a2c3804a6c2a8ae66d0b25e3e6004def75845b170716f679c4f2993bcc8",
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 5760416
}
],
"manifest": "ewogICAic2NoZW1hVmVyc2lvbiI6IDIsCiAgICJtZWRpYVR5cGUiOiAiYXBwbGljYXRpb24vdm5kLmRvY2tlci5kaXN0cmlidXRpb24ubWFuaWZlc3QudjIranNvbiIsCiAgICJjb25maWciOiB7CiAgICAgICJtZWRpYVR5cGUiOiAiYXBwbGljYXRpb24vdm5kLmRvY2tlci5jb250YWluZXIuaW1hZ2UudjEranNvbiIsCiAgICAgICJzaXplIjogMTY5NiwKICAgICAgImRpZ2VzdCI6ICJzaGEyNTY6YWE4NjQ3MjNiZjQzZjJlYjNjYWFmNTg4ZjE3MjI3MWZkMTMxZWQwMmQ4YzgyMjA3YjBjNmQ4ODcxNjcwYzA1NiIKICAgfSwKICAgImxheWVycyI6IFsKICAgICAgewogICAgICAgICAibWVkaWFUeXBlIjogImFwcGxpY2F0aW9uL3ZuZC5kb2NrZXIuaW1hZ2Uucm9vdGZzLmRpZmYudGFyLmd6aXAiLAogICAgICAgICAic2l6ZSI6IDg5LAogICAgICAgICAiZGlnZXN0IjogInNoYTI1NjpmZmUyMzdhY2VmOWE2Y2E1ZTk1ODA4YmM1MWE4NWY2N2M5OTVlYjM4NjE3ZjQxZDAxMjBmNjc5NzNiZWIxNWIyIgogICAgICB9LAogICAgICB7CiAgICAgICAgICJtZWRpYVR5cGUiOiAiYXBwbGljYXRpb24vdm5kLmRvY2tlci5pbWFnZS5yb290ZnMuZGlmZi50YXIuZ3ppcCIsCiAgICAgICAgICJzaXplIjogMTgwNTQ0MiwKICAgICAgICAgImRpZ2VzdCI6ICJzaGEyNTY6MzVlNGQ5NjMxMDhhYjBlMzg1ZDIzZGQyZmI1OGJiMDhlNGQ3Y2NmOGIxMjU0ODJkNGI2MTgwZDM0NzE1MWNiYSIKICAgICAgfQogICBdCn0=",
"manifestDigest": "sha256:a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f",
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"os": "linux",
"repoDigests": [
"index.docker.io/qorbani/golang-hello-world@sha256:a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f"
],
"tags": [],
"userInput": "docker.io/qorbani/golang-hello-world@sha256:a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f"
},
"type": "image"
}
}
},
"status": {}
}
{"kind": "VulnerabilityManifest", "apiVersion": "spdx.softwarecomposition.kubescape.io/v1beta1", "metadata": {"name": "docker.io-qorbani-golang-hello-world-sha256-a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f-34c31f", "namespace": "kubescape", "uid": "66ac817f-ae1b-4a73-b40d-a0d5bb5e3131", "resourceVersion": "1", "creationTimestamp": "2024-11-29T13:49:01Z", "labels": {"kubescape.io/context": "non-filtered", "kubescape.io/image-id": "docker-io-qorbani-golang-hello-world-sha256-a14f3fbf3d5d1c4a000", "kubescape.io/image-name": "docker-io-qorbani-golang-hello-world"}, "annotations": {"kubescape.io/image-id": "docker.io/qorbani/golang-hello-world@sha256:a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f", "kubescape.io/image-tag": "docker.io/qorbani/golang-hello-world@sha256:a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f", "kubescape.io/resource-size": "7270", "kubescape.io/status": "ready", "kubescape.io/sync-checksum": "0f2976ebce55b96365a55bfe897d35901f54e2389f5bcff496cf2f5df321dd8c", "kubescape.io/tool-version": "v1.13.0"}}, "spec": {"metadata": {"withRelevancy": false, "tool": {"name": "", "version": "v0.81.0", "databaseVersion": "sha256:5a5f72d5828b204f21cd1e15f95f6fa8ec214da0ad0d970bd91f5dee43100cb3"}, "report": {"createdAt": null}}, "payload": {"matches": null, "source": {"type": "image", "target": {"userInput": "docker.io/qorbani/golang-hello-world@sha256:a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f", "imageID": "sha256:aa864723bf43f2eb3caaf588f172271fd131ed02d8c82207b0c6d8871670c056", "manifestDigest": "", "mediaType": "", "tags": [], "imageSize": 5760416, "layers": [{"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip", "digest": "sha256:7b139a2c3804a6c2a8ae66d0b25e3e6004def75845b170716f679c4f2993bcc8", "size": 0}, {"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip", "digest": "sha256:6061e963ffa22fc88ca70da1c6658501bff4a8d7f067fa060d64ef6de99215c1", "size": 5760416}], "manifest": null, "config": "eyJhcmNoaXRlY3R1cmUiOiJhbWQ2NCIsImNyZWF0ZWQiOiIyMDE2LTA5LTEzVDA1OjU1OjI4LjU2Mjc2MDcwN1oiLCJoaXN0b3J5IjpbeyJjcmVhdGVkIjoiMjAxNi0wOS0xM1QwNTo0ODo0MC43NjI1NzYyNzJaIiwiY3JlYXRlZF9ieSI6Ii9iaW4vc2ggLWMgIyhub3ApICBXT1JLRElSIC9hcHAifSx7ImNyZWF0ZWQiOiIyMDE2LTA5LTEzVDA1OjU1OjI4LjUxNDUxNzAxMloiLCJjcmVhdGVkX2J5IjoiL2Jpbi9zaCAtYyAjKG5vcCkgQUREIGZpbGU6MDZlYTlhZDFjOGRjYmI4ZmZhZjNkMDI3NjQ5MDI1YzAzNjc5MjNjMmRhYzRhZTY2ODVjMTFlYjBlZWRmODIwYSBpbiAvYXBwL2hlbGxvLXdvcmxkICJ9LHsiY3JlYXRlZCI6IjIwMTYtMDktMTNUMDU6NTU6MjguNTYyNzYwNzA3WiIsImNyZWF0ZWRfYnkiOiIvYmluL3NoIC1jICMobm9wKSAgQ01EIFtcIi9hcHAvaGVsbG8td29ybGRcIl0iLCJlbXB0eV9sYXllciI6dHJ1ZX1dLCJvcyI6ImxpbnV4Iiwicm9vdGZzIjp7InR5cGUiOiJsYXllcnMiLCJkaWZmX2lkcyI6WyJzaGEyNTY6N2IxMzlhMmMzODA0YTZjMmE4YWU2NmQwYjI1ZTNlNjAwNGRlZjc1ODQ1YjE3MDcxNmY2NzljNGYyOTkzYmNjOCIsInNoYTI1Njo2MDYxZTk2M2ZmYTIyZmM4OGNhNzBkYTFjNjY1ODUwMWJmZjRhOGQ3ZjA2N2ZhMDYwZDY0ZWY2ZGU5OTIxNWMxIl19LCJjb25maWciOnsiQ21kIjpbIi9hcHAvaGVsbG8td29ybGQiXSwiSGVhbHRoY2hlY2siOnt9LCJFbnYiOlsiUEFUSD0vdXNyL2xvY2FsL3NiaW46L3Vzci9sb2NhbC9iaW46L3Vzci9zYmluOi91c3IvYmluOi9zYmluOi9iaW4iXSwiV29ya2luZ0RpciI6Ii9hcHAifX0=", "repoDigests": ["docker.io/qorbani/golang-hello-world@sha256:a14f3fbf3d5d1c4a000ab2c0c6d5e4633bdb96286a0130fa5b2c5967b934c31f"], "architecture": "amd64", "os": "linux"}}, "distro": {"name": "", "version": "", "idLike": null}, "descriptor": {"name": "", "version": "", "db": {"built": "2023-05-29T01:31:19Z", "schemaVersion": 5, "location": "/home/nonroot/.cache/grype/db/5", "checksum": "sha256:5a5f72d5828b204f21cd1e15f95f6fa8ec214da0ad0d970bd91f5dee43100cb3", "error": null}}}}, "status": {}}
2 changes: 1 addition & 1 deletion configurations/expected-result/CVEs/java-simple.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion configurations/expected-result/CVEs/mariadb.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion configurations/expected-result/CVEs/nginx.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion configurations/expected-result/CVEs/python-simple.json

Large diffs are not rendered by default.

Loading

0 comments on commit ffb5ea8

Please sign in to comment.