github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/syft/formats/syftjson/test-fixtures/snapshot/TestEncodeFullJSONDocument.golden (about)

     1  {
     2   "artifacts": [
     3    {
     4     "id": "271e49ba46e0b601",
     5     "name": "package-1",
     6     "version": "1.0.1",
     7     "type": "python",
     8     "foundBy": "the-cataloger-1",
     9     "locations": [
    10      {
    11       "path": "/a/place/a"
    12      }
    13     ],
    14     "licenses": [
    15      {
    16       "value": "MIT",
    17       "spdxExpression": "MIT",
    18       "type": "declared",
    19       "urls": [],
    20       "locations": []
    21      }
    22     ],
    23     "language": "python",
    24     "cpes": [
    25      "cpe:2.3:*:some:package:1:*:*:*:*:*:*:*"
    26     ],
    27     "purl": "a-purl-1",
    28     "metadataType": "PythonPackageMetadata",
    29     "metadata": {
    30      "name": "package-1",
    31      "version": "1.0.1",
    32      "author": "",
    33      "authorEmail": "",
    34      "platform": "",
    35      "sitePackagesRootPath": ""
    36     }
    37    },
    38    {
    39     "id": "9fd0b9f41034991d",
    40     "name": "package-2",
    41     "version": "2.0.1",
    42     "type": "deb",
    43     "foundBy": "the-cataloger-2",
    44     "locations": [
    45      {
    46       "path": "/b/place/b"
    47      }
    48     ],
    49     "licenses": [],
    50     "language": "",
    51     "cpes": [
    52      "cpe:2.3:*:some:package:2:*:*:*:*:*:*:*"
    53     ],
    54     "purl": "a-purl-2",
    55     "metadataType": "DpkgMetadata",
    56     "metadata": {
    57      "package": "package-2",
    58      "source": "",
    59      "version": "2.0.1",
    60      "sourceVersion": "",
    61      "architecture": "",
    62      "maintainer": "",
    63      "installedSize": 0,
    64      "files": []
    65     }
    66    }
    67   ],
    68   "artifactRelationships": [
    69    {
    70     "parent": "",
    71     "child": "",
    72     "type": "ownership-by-file-overlap",
    73     "metadata": {
    74      "file": "path"
    75     }
    76    }
    77   ],
    78   "files": [
    79    {
    80     "id": "913b4592e2c2ebdf",
    81     "location": {
    82      "path": "/a/place"
    83     },
    84     "metadata": {
    85      "mode": 775,
    86      "type": "Directory",
    87      "userID": 0,
    88      "groupID": 0,
    89      "mimeType": "",
    90      "size": 0
    91     }
    92    },
    93    {
    94     "id": "0e7c88bd18e11b0b",
    95     "location": {
    96      "path": "/a/place/a"
    97     },
    98     "metadata": {
    99      "mode": 775,
   100      "type": "RegularFile",
   101      "userID": 0,
   102      "groupID": 0,
   103      "mimeType": "",
   104      "size": 0
   105     },
   106     "contents": "the-contents",
   107     "digests": [
   108      {
   109       "algorithm": "sha256",
   110       "value": "366a3f5653e34673b875891b021647440d0127c2ef041e3b1a22da2a7d4f3703"
   111      }
   112     ]
   113    },
   114    {
   115     "id": "5c3dc6885f48b5a1",
   116     "location": {
   117      "path": "/b"
   118     },
   119     "metadata": {
   120      "mode": 775,
   121      "type": "SymbolicLink",
   122      "linkDestination": "/c",
   123      "userID": 0,
   124      "groupID": 0,
   125      "mimeType": "",
   126      "size": 0
   127     }
   128    },
   129    {
   130     "id": "799d2f12da0bcec4",
   131     "location": {
   132      "path": "/b/place/b"
   133     },
   134     "metadata": {
   135      "mode": 644,
   136      "type": "RegularFile",
   137      "userID": 1,
   138      "groupID": 2,
   139      "mimeType": "",
   140      "size": 0
   141     },
   142     "digests": [
   143      {
   144       "algorithm": "sha256",
   145       "value": "1b3722da2a7d90d033b87581a2a3f12021647445653e34666ef041e3b4f3707c"
   146      }
   147     ]
   148    }
   149   ],
   150   "source": {
   151    "id": "c2b46b4eb06296933b7cf0722683964e9ecbd93265b9ef6ae9642e3952afbba0",
   152    "name": "",
   153    "version": "",
   154    "type": "image",
   155    "metadata": {
   156     "userInput": "user-image-input",
   157     "imageID": "sha256:c2b46b4eb06296933b7cf0722683964e9ecbd93265b9ef6ae9642e3952afbba0",
   158     "manifestDigest": "sha256:2731251dc34951c0e50fcc643b4c5f74922dad1a5d98f302b504cf46cd5d9368",
   159     "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   160     "tags": [
   161      "stereoscope-fixture-image-simple:85066c51088bdd274f7a89e99e00490f666c49e72ffc955707cd6e18f0e22c5b"
   162     ],
   163     "imageSize": 38,
   164     "layers": [
   165      {
   166       "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
   167       "digest": "sha256:3de16c5b8659a2e8d888b8ded8427be7a5686a3c8c4e4dd30de20f362827285b",
   168       "size": 22
   169      },
   170      {
   171       "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
   172       "digest": "sha256:366a3f5653e34673b875891b021647440d0127c2ef041e3b1a22da2a7d4f3703",
   173       "size": 16
   174      }
   175     ],
   176     "manifest": "ZXlKelkyaGxiV0ZXWlhKemFXOXVJam95TENKdFpXUnBZVlI1Y0dVaU9pSmguLi4=",
   177     "config": "ZXlKaGNtTm9hWFJsWTNSMWNtVWlPaUpoYldRMk5DSXNJbU52Ym1acC4uLg==",
   178     "repoDigests": [],
   179     "architecture": "",
   180     "os": ""
   181    }
   182   },
   183   "distro": {
   184    "id": "redhat",
   185    "idLike": [
   186     "rhel"
   187    ],
   188    "version": "7",
   189    "versionID": "7"
   190   },
   191   "descriptor": {
   192    "name": "syft",
   193    "version": "v0.42.0-bogus",
   194    "configuration": {
   195     "config-key": "config-value"
   196    }
   197   }
   198  }