github.com/lineaje-labs/syft@v0.98.1-0.20231227153149-9e393f60ff1b/syft/format/syftjson/test-fixtures/snapshot/TestDirectoryEncoder.golden (about)

     1  {
     2   "artifacts": [
     3    {
     4     "id": "fb6bef15e281ea43",
     5     "name": "package-1",
     6     "version": "1.0.1",
     7     "type": "python",
     8     "foundBy": "the-cataloger-1",
     9     "locations": [
    10      {
    11       "path": "/some/path/pkg1",
    12       "accessPath": "/some/path/pkg1"
    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      "cpe:2.3:*:some:package:2:*:*:*:*:*:*:*"
    27     ],
    28     "purl": "a-purl-2",
    29     "metadataType": "python-package",
    30     "metadata": {
    31      "name": "package-1",
    32      "version": "1.0.1",
    33      "author": "",
    34      "authorEmail": "",
    35      "platform": "",
    36      "files": [
    37       {
    38        "path": "/some/path/pkg1/dependencies/foo"
    39       }
    40      ],
    41      "sitePackagesRootPath": ""
    42     }
    43    },
    44    {
    45     "id": "39392bb5e270f669",
    46     "name": "package-2",
    47     "version": "2.0.1",
    48     "type": "deb",
    49     "foundBy": "the-cataloger-2",
    50     "locations": [
    51      {
    52       "path": "/some/path/pkg1",
    53       "accessPath": "/some/path/pkg1"
    54      }
    55     ],
    56     "licenses": [],
    57     "language": "",
    58     "cpes": [
    59      "cpe:2.3:*:some:package:2:*:*:*:*:*:*:*"
    60     ],
    61     "purl": "pkg:deb/debian/package-2@2.0.1",
    62     "metadataType": "dpkg-db-entry",
    63     "metadata": {
    64      "package": "package-2",
    65      "source": "",
    66      "version": "2.0.1",
    67      "sourceVersion": "",
    68      "architecture": "",
    69      "maintainer": "",
    70      "installedSize": 0,
    71      "files": null
    72     }
    73    }
    74   ],
    75   "artifactRelationships": [],
    76   "source": {
    77    "id": "d1563248892cd59af469f406eee907c76fa4f9041f5410d45b93aef903bc4216",
    78    "name": "some/path",
    79    "version": "",
    80    "type": "directory",
    81    "metadata": {
    82     "path": "redacted/some/path"
    83    }
    84   },
    85   "distro": {
    86    "prettyName": "debian",
    87    "name": "debian",
    88    "id": "debian",
    89    "idLike": [
    90     "like!"
    91    ],
    92    "version": "1.2.3",
    93    "versionID": "1.2.3"
    94   },
    95   "descriptor": {
    96    "name": "syft",
    97    "version": "v0.42.0-bogus",
    98    "configuration": {
    99     "config-key": "config-value"
   100    }
   101   }
   102  }