github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/format/syftjson/test-fixtures/snapshot/TestEncodeFullJSONDocument.golden (about)

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