Projects STRLCPY syft Commits c69cdd9f
🤬
  • ■ ■ ■ ■
    internal/constants.go
    skipped 5 lines
    6 6   
    7 7   // JSONSchemaVersion is the current schema version output by the JSON encoder
    8 8   // This is roughly following the "SchemaVer" guidelines for versioning the JSON schema. Please see schema/json/README.md for details on how to increment.
    9  - JSONSchemaVersion = "8.0.0"
     9 + JSONSchemaVersion = "8.0.1"
    10 10  )
    11 11   
  • ■ ■ ■ ■ ■ ■
    schema/json/schema-8.0.1.json
     1 +{
     2 + "$schema": "https://json-schema.org/draft/2020-12/schema",
     3 + "$id": "https://github.com/anchore/syft/syft/formats/syftjson/model/document",
     4 + "$ref": "#/$defs/Document",
     5 + "$defs": {
     6 + "AlpmFileRecord": {
     7 + "properties": {
     8 + "path": {
     9 + "type": "string"
     10 + },
     11 + "type": {
     12 + "type": "string"
     13 + },
     14 + "uid": {
     15 + "type": "string"
     16 + },
     17 + "gid": {
     18 + "type": "string"
     19 + },
     20 + "time": {
     21 + "type": "string",
     22 + "format": "date-time"
     23 + },
     24 + "size": {
     25 + "type": "string"
     26 + },
     27 + "link": {
     28 + "type": "string"
     29 + },
     30 + "digest": {
     31 + "items": {
     32 + "$ref": "#/$defs/Digest"
     33 + },
     34 + "type": "array"
     35 + }
     36 + },
     37 + "type": "object"
     38 + },
     39 + "AlpmMetadata": {
     40 + "properties": {
     41 + "basepackage": {
     42 + "type": "string"
     43 + },
     44 + "package": {
     45 + "type": "string"
     46 + },
     47 + "version": {
     48 + "type": "string"
     49 + },
     50 + "description": {
     51 + "type": "string"
     52 + },
     53 + "architecture": {
     54 + "type": "string"
     55 + },
     56 + "size": {
     57 + "type": "integer"
     58 + },
     59 + "packager": {
     60 + "type": "string"
     61 + },
     62 + "url": {
     63 + "type": "string"
     64 + },
     65 + "validation": {
     66 + "type": "string"
     67 + },
     68 + "reason": {
     69 + "type": "integer"
     70 + },
     71 + "files": {
     72 + "items": {
     73 + "$ref": "#/$defs/AlpmFileRecord"
     74 + },
     75 + "type": "array"
     76 + },
     77 + "backup": {
     78 + "items": {
     79 + "$ref": "#/$defs/AlpmFileRecord"
     80 + },
     81 + "type": "array"
     82 + }
     83 + },
     84 + "type": "object",
     85 + "required": [
     86 + "basepackage",
     87 + "package",
     88 + "version",
     89 + "description",
     90 + "architecture",
     91 + "size",
     92 + "packager",
     93 + "url",
     94 + "validation",
     95 + "reason",
     96 + "files",
     97 + "backup"
     98 + ]
     99 + },
     100 + "ApkFileRecord": {
     101 + "properties": {
     102 + "path": {
     103 + "type": "string"
     104 + },
     105 + "ownerUid": {
     106 + "type": "string"
     107 + },
     108 + "ownerGid": {
     109 + "type": "string"
     110 + },
     111 + "permissions": {
     112 + "type": "string"
     113 + },
     114 + "digest": {
     115 + "$ref": "#/$defs/Digest"
     116 + }
     117 + },
     118 + "type": "object",
     119 + "required": [
     120 + "path"
     121 + ]
     122 + },
     123 + "ApkMetadata": {
     124 + "properties": {
     125 + "package": {
     126 + "type": "string"
     127 + },
     128 + "originPackage": {
     129 + "type": "string"
     130 + },
     131 + "maintainer": {
     132 + "type": "string"
     133 + },
     134 + "version": {
     135 + "type": "string"
     136 + },
     137 + "architecture": {
     138 + "type": "string"
     139 + },
     140 + "url": {
     141 + "type": "string"
     142 + },
     143 + "description": {
     144 + "type": "string"
     145 + },
     146 + "size": {
     147 + "type": "integer"
     148 + },
     149 + "installedSize": {
     150 + "type": "integer"
     151 + },
     152 + "pullDependencies": {
     153 + "items": {
     154 + "type": "string"
     155 + },
     156 + "type": "array"
     157 + },
     158 + "provides": {
     159 + "items": {
     160 + "type": "string"
     161 + },
     162 + "type": "array"
     163 + },
     164 + "pullChecksum": {
     165 + "type": "string"
     166 + },
     167 + "gitCommitOfApkPort": {
     168 + "type": "string"
     169 + },
     170 + "files": {
     171 + "items": {
     172 + "$ref": "#/$defs/ApkFileRecord"
     173 + },
     174 + "type": "array"
     175 + }
     176 + },
     177 + "type": "object",
     178 + "required": [
     179 + "package",
     180 + "originPackage",
     181 + "maintainer",
     182 + "version",
     183 + "architecture",
     184 + "url",
     185 + "description",
     186 + "size",
     187 + "installedSize",
     188 + "pullDependencies",
     189 + "provides",
     190 + "pullChecksum",
     191 + "gitCommitOfApkPort",
     192 + "files"
     193 + ]
     194 + },
     195 + "BinaryMetadata": {
     196 + "properties": {
     197 + "matches": {
     198 + "items": {
     199 + "$ref": "#/$defs/ClassifierMatch"
     200 + },
     201 + "type": "array"
     202 + }
     203 + },
     204 + "type": "object",
     205 + "required": [
     206 + "matches"
     207 + ]
     208 + },
     209 + "CargoPackageMetadata": {
     210 + "properties": {
     211 + "name": {
     212 + "type": "string"
     213 + },
     214 + "version": {
     215 + "type": "string"
     216 + },
     217 + "source": {
     218 + "type": "string"
     219 + },
     220 + "checksum": {
     221 + "type": "string"
     222 + },
     223 + "dependencies": {
     224 + "items": {
     225 + "type": "string"
     226 + },
     227 + "type": "array"
     228 + }
     229 + },
     230 + "type": "object",
     231 + "required": [
     232 + "name",
     233 + "version",
     234 + "source",
     235 + "checksum",
     236 + "dependencies"
     237 + ]
     238 + },
     239 + "ClassifierMatch": {
     240 + "properties": {
     241 + "classifier": {
     242 + "type": "string"
     243 + },
     244 + "location": {
     245 + "$ref": "#/$defs/Location"
     246 + }
     247 + },
     248 + "type": "object",
     249 + "required": [
     250 + "classifier",
     251 + "location"
     252 + ]
     253 + },
     254 + "CocoapodsMetadata": {
     255 + "properties": {
     256 + "checksum": {
     257 + "type": "string"
     258 + }
     259 + },
     260 + "type": "object",
     261 + "required": [
     262 + "checksum"
     263 + ]
     264 + },
     265 + "ConanLockMetadata": {
     266 + "properties": {
     267 + "ref": {
     268 + "type": "string"
     269 + },
     270 + "package_id": {
     271 + "type": "string"
     272 + },
     273 + "prev": {
     274 + "type": "string"
     275 + },
     276 + "requires": {
     277 + "type": "string"
     278 + },
     279 + "build_requires": {
     280 + "type": "string"
     281 + },
     282 + "py_requires": {
     283 + "type": "string"
     284 + },
     285 + "options": {
     286 + "patternProperties": {
     287 + ".*": {
     288 + "type": "string"
     289 + }
     290 + },
     291 + "type": "object"
     292 + },
     293 + "path": {
     294 + "type": "string"
     295 + },
     296 + "context": {
     297 + "type": "string"
     298 + }
     299 + },
     300 + "type": "object",
     301 + "required": [
     302 + "ref"
     303 + ]
     304 + },
     305 + "ConanMetadata": {
     306 + "properties": {
     307 + "ref": {
     308 + "type": "string"
     309 + }
     310 + },
     311 + "type": "object",
     312 + "required": [
     313 + "ref"
     314 + ]
     315 + },
     316 + "Coordinates": {
     317 + "properties": {
     318 + "path": {
     319 + "type": "string"
     320 + },
     321 + "layerID": {
     322 + "type": "string"
     323 + }
     324 + },
     325 + "type": "object",
     326 + "required": [
     327 + "path"
     328 + ]
     329 + },
     330 + "DartPubMetadata": {
     331 + "properties": {
     332 + "name": {
     333 + "type": "string"
     334 + },
     335 + "version": {
     336 + "type": "string"
     337 + },
     338 + "hosted_url": {
     339 + "type": "string"
     340 + },
     341 + "vcs_url": {
     342 + "type": "string"
     343 + }
     344 + },
     345 + "type": "object",
     346 + "required": [
     347 + "name",
     348 + "version"
     349 + ]
     350 + },
     351 + "Descriptor": {
     352 + "properties": {
     353 + "name": {
     354 + "type": "string"
     355 + },
     356 + "version": {
     357 + "type": "string"
     358 + },
     359 + "configuration": true
     360 + },
     361 + "type": "object",
     362 + "required": [
     363 + "name",
     364 + "version"
     365 + ]
     366 + },
     367 + "Digest": {
     368 + "properties": {
     369 + "algorithm": {
     370 + "type": "string"
     371 + },
     372 + "value": {
     373 + "type": "string"
     374 + }
     375 + },
     376 + "type": "object",
     377 + "required": [
     378 + "algorithm",
     379 + "value"
     380 + ]
     381 + },
     382 + "Document": {
     383 + "properties": {
     384 + "artifacts": {
     385 + "items": {
     386 + "$ref": "#/$defs/Package"
     387 + },
     388 + "type": "array"
     389 + },
     390 + "artifactRelationships": {
     391 + "items": {
     392 + "$ref": "#/$defs/Relationship"
     393 + },
     394 + "type": "array"
     395 + },
     396 + "files": {
     397 + "items": {
     398 + "$ref": "#/$defs/File"
     399 + },
     400 + "type": "array"
     401 + },
     402 + "secrets": {
     403 + "items": {
     404 + "$ref": "#/$defs/Secrets"
     405 + },
     406 + "type": "array"
     407 + },
     408 + "source": {
     409 + "$ref": "#/$defs/Source"
     410 + },
     411 + "distro": {
     412 + "$ref": "#/$defs/LinuxRelease"
     413 + },
     414 + "descriptor": {
     415 + "$ref": "#/$defs/Descriptor"
     416 + },
     417 + "schema": {
     418 + "$ref": "#/$defs/Schema"
     419 + }
     420 + },
     421 + "type": "object",
     422 + "required": [
     423 + "artifacts",
     424 + "artifactRelationships",
     425 + "source",
     426 + "distro",
     427 + "descriptor",
     428 + "schema"
     429 + ]
     430 + },
     431 + "DotnetDepsMetadata": {
     432 + "properties": {
     433 + "name": {
     434 + "type": "string"
     435 + },
     436 + "version": {
     437 + "type": "string"
     438 + },
     439 + "path": {
     440 + "type": "string"
     441 + },
     442 + "sha512": {
     443 + "type": "string"
     444 + },
     445 + "hashPath": {
     446 + "type": "string"
     447 + }
     448 + },
     449 + "type": "object",
     450 + "required": [
     451 + "name",
     452 + "version",
     453 + "path",
     454 + "sha512",
     455 + "hashPath"
     456 + ]
     457 + },
     458 + "DpkgFileRecord": {
     459 + "properties": {
     460 + "path": {
     461 + "type": "string"
     462 + },
     463 + "digest": {
     464 + "$ref": "#/$defs/Digest"
     465 + },
     466 + "isConfigFile": {
     467 + "type": "boolean"
     468 + }
     469 + },
     470 + "type": "object",
     471 + "required": [
     472 + "path",
     473 + "isConfigFile"
     474 + ]
     475 + },
     476 + "DpkgMetadata": {
     477 + "properties": {
     478 + "package": {
     479 + "type": "string"
     480 + },
     481 + "source": {
     482 + "type": "string"
     483 + },
     484 + "version": {
     485 + "type": "string"
     486 + },
     487 + "sourceVersion": {
     488 + "type": "string"
     489 + },
     490 + "architecture": {
     491 + "type": "string"
     492 + },
     493 + "maintainer": {
     494 + "type": "string"
     495 + },
     496 + "installedSize": {
     497 + "type": "integer"
     498 + },
     499 + "files": {
     500 + "items": {
     501 + "$ref": "#/$defs/DpkgFileRecord"
     502 + },
     503 + "type": "array"
     504 + }
     505 + },
     506 + "type": "object",
     507 + "required": [
     508 + "package",
     509 + "source",
     510 + "version",
     511 + "sourceVersion",
     512 + "architecture",
     513 + "maintainer",
     514 + "installedSize",
     515 + "files"
     516 + ]
     517 + },
     518 + "File": {
     519 + "properties": {
     520 + "id": {
     521 + "type": "string"
     522 + },
     523 + "location": {
     524 + "$ref": "#/$defs/Coordinates"
     525 + },
     526 + "metadata": {
     527 + "$ref": "#/$defs/FileMetadataEntry"
     528 + },
     529 + "contents": {
     530 + "type": "string"
     531 + },
     532 + "digests": {
     533 + "items": {
     534 + "$ref": "#/$defs/Digest"
     535 + },
     536 + "type": "array"
     537 + }
     538 + },
     539 + "type": "object",
     540 + "required": [
     541 + "id",
     542 + "location"
     543 + ]
     544 + },
     545 + "FileMetadataEntry": {
     546 + "properties": {
     547 + "mode": {
     548 + "type": "integer"
     549 + },
     550 + "type": {
     551 + "type": "string"
     552 + },
     553 + "linkDestination": {
     554 + "type": "string"
     555 + },
     556 + "userID": {
     557 + "type": "integer"
     558 + },
     559 + "groupID": {
     560 + "type": "integer"
     561 + },
     562 + "mimeType": {
     563 + "type": "string"
     564 + },
     565 + "size": {
     566 + "type": "integer"
     567 + }
     568 + },
     569 + "type": "object",
     570 + "required": [
     571 + "mode",
     572 + "type",
     573 + "userID",
     574 + "groupID",
     575 + "mimeType",
     576 + "size"
     577 + ]
     578 + },
     579 + "GemMetadata": {
     580 + "properties": {
     581 + "name": {
     582 + "type": "string"
     583 + },
     584 + "version": {
     585 + "type": "string"
     586 + },
     587 + "files": {
     588 + "items": {
     589 + "type": "string"
     590 + },
     591 + "type": "array"
     592 + },
     593 + "authors": {
     594 + "items": {
     595 + "type": "string"
     596 + },
     597 + "type": "array"
     598 + },
     599 + "homepage": {
     600 + "type": "string"
     601 + }
     602 + },
     603 + "type": "object",
     604 + "required": [
     605 + "name",
     606 + "version"
     607 + ]
     608 + },
     609 + "GolangBinMetadata": {
     610 + "properties": {
     611 + "goBuildSettings": {
     612 + "patternProperties": {
     613 + ".*": {
     614 + "type": "string"
     615 + }
     616 + },
     617 + "type": "object"
     618 + },
     619 + "goCompiledVersion": {
     620 + "type": "string"
     621 + },
     622 + "architecture": {
     623 + "type": "string"
     624 + },
     625 + "h1Digest": {
     626 + "type": "string"
     627 + },
     628 + "mainModule": {
     629 + "type": "string"
     630 + }
     631 + },
     632 + "type": "object",
     633 + "required": [
     634 + "goCompiledVersion",
     635 + "architecture"
     636 + ]
     637 + },
     638 + "GolangModMetadata": {
     639 + "properties": {
     640 + "h1Digest": {
     641 + "type": "string"
     642 + }
     643 + },
     644 + "type": "object"
     645 + },
     646 + "HackageMetadata": {
     647 + "properties": {
     648 + "name": {
     649 + "type": "string"
     650 + },
     651 + "version": {
     652 + "type": "string"
     653 + },
     654 + "pkgHash": {
     655 + "type": "string"
     656 + },
     657 + "snapshotURL": {
     658 + "type": "string"
     659 + }
     660 + },
     661 + "type": "object",
     662 + "required": [
     663 + "name",
     664 + "version"
     665 + ]
     666 + },
     667 + "IDLikes": {
     668 + "items": {
     669 + "type": "string"
     670 + },
     671 + "type": "array"
     672 + },
     673 + "JavaManifest": {
     674 + "properties": {
     675 + "main": {
     676 + "patternProperties": {
     677 + ".*": {
     678 + "type": "string"
     679 + }
     680 + },
     681 + "type": "object"
     682 + },
     683 + "namedSections": {
     684 + "patternProperties": {
     685 + ".*": {
     686 + "patternProperties": {
     687 + ".*": {
     688 + "type": "string"
     689 + }
     690 + },
     691 + "type": "object"
     692 + }
     693 + },
     694 + "type": "object"
     695 + }
     696 + },
     697 + "type": "object"
     698 + },
     699 + "JavaMetadata": {
     700 + "properties": {
     701 + "virtualPath": {
     702 + "type": "string"
     703 + },
     704 + "manifest": {
     705 + "$ref": "#/$defs/JavaManifest"
     706 + },
     707 + "pomProperties": {
     708 + "$ref": "#/$defs/PomProperties"
     709 + },
     710 + "pomProject": {
     711 + "$ref": "#/$defs/PomProject"
     712 + },
     713 + "digest": {
     714 + "items": {
     715 + "$ref": "#/$defs/Digest"
     716 + },
     717 + "type": "array"
     718 + }
     719 + },
     720 + "type": "object",
     721 + "required": [
     722 + "virtualPath"
     723 + ]
     724 + },
     725 + "KbPackageMetadata": {
     726 + "properties": {
     727 + "product_id": {
     728 + "type": "string"
     729 + },
     730 + "kb": {
     731 + "type": "string"
     732 + }
     733 + },
     734 + "type": "object",
     735 + "required": [
     736 + "product_id",
     737 + "kb"
     738 + ]
     739 + },
     740 + "License": {
     741 + "properties": {
     742 + "value": {
     743 + "type": "string"
     744 + },
     745 + "spdxExpression": {
     746 + "type": "string"
     747 + },
     748 + "type": {
     749 + "type": "string"
     750 + },
     751 + "urls": {
     752 + "items": {
     753 + "type": "string"
     754 + },
     755 + "type": "array"
     756 + },
     757 + "locations": {
     758 + "items": {
     759 + "$ref": "#/$defs/Location"
     760 + },
     761 + "type": "array"
     762 + }
     763 + },
     764 + "type": "object",
     765 + "required": [
     766 + "value",
     767 + "spdxExpression",
     768 + "type",
     769 + "urls",
     770 + "locations"
     771 + ]
     772 + },
     773 + "LinuxKernelMetadata": {
     774 + "properties": {
     775 + "name": {
     776 + "type": "string"
     777 + },
     778 + "architecture": {
     779 + "type": "string"
     780 + },
     781 + "version": {
     782 + "type": "string"
     783 + },
     784 + "extendedVersion": {
     785 + "type": "string"
     786 + },
     787 + "buildTime": {
     788 + "type": "string"
     789 + },
     790 + "author": {
     791 + "type": "string"
     792 + },
     793 + "format": {
     794 + "type": "string"
     795 + },
     796 + "rwRootFS": {
     797 + "type": "boolean"
     798 + },
     799 + "swapDevice": {
     800 + "type": "integer"
     801 + },
     802 + "rootDevice": {
     803 + "type": "integer"
     804 + },
     805 + "videoMode": {
     806 + "type": "string"
     807 + }
     808 + },
     809 + "type": "object",
     810 + "required": [
     811 + "name",
     812 + "architecture",
     813 + "version"
     814 + ]
     815 + },
     816 + "LinuxKernelModuleMetadata": {
     817 + "properties": {
     818 + "name": {
     819 + "type": "string"
     820 + },
     821 + "version": {
     822 + "type": "string"
     823 + },
     824 + "sourceVersion": {
     825 + "type": "string"
     826 + },
     827 + "path": {
     828 + "type": "string"
     829 + },
     830 + "description": {
     831 + "type": "string"
     832 + },
     833 + "author": {
     834 + "type": "string"
     835 + },
     836 + "license": {
     837 + "type": "string"
     838 + },
     839 + "kernelVersion": {
     840 + "type": "string"
     841 + },
     842 + "versionMagic": {
     843 + "type": "string"
     844 + },
     845 + "parameters": {
     846 + "patternProperties": {
     847 + ".*": {
     848 + "$ref": "#/$defs/LinuxKernelModuleParameter"
     849 + }
     850 + },
     851 + "type": "object"
     852 + }
     853 + },
     854 + "type": "object"
     855 + },
     856 + "LinuxKernelModuleParameter": {
     857 + "properties": {
     858 + "type": {
     859 + "type": "string"
     860 + },
     861 + "description": {
     862 + "type": "string"
     863 + }
     864 + },
     865 + "type": "object"
     866 + },
     867 + "LinuxRelease": {
     868 + "properties": {
     869 + "prettyName": {
     870 + "type": "string"
     871 + },
     872 + "name": {
     873 + "type": "string"
     874 + },
     875 + "id": {
     876 + "type": "string"
     877 + },
     878 + "idLike": {
     879 + "$ref": "#/$defs/IDLikes"
     880 + },
     881 + "version": {
     882 + "type": "string"
     883 + },
     884 + "versionID": {
     885 + "type": "string"
     886 + },
     887 + "versionCodename": {
     888 + "type": "string"
     889 + },
     890 + "buildID": {
     891 + "type": "string"
     892 + },
     893 + "imageID": {
     894 + "type": "string"
     895 + },
     896 + "imageVersion": {
     897 + "type": "string"
     898 + },
     899 + "variant": {
     900 + "type": "string"
     901 + },
     902 + "variantID": {
     903 + "type": "string"
     904 + },
     905 + "homeURL": {
     906 + "type": "string"
     907 + },
     908 + "supportURL": {
     909 + "type": "string"
     910 + },
     911 + "bugReportURL": {
     912 + "type": "string"
     913 + },
     914 + "privacyPolicyURL": {
     915 + "type": "string"
     916 + },
     917 + "cpeName": {
     918 + "type": "string"
     919 + },
     920 + "supportEnd": {
     921 + "type": "string"
     922 + }
     923 + },
     924 + "type": "object"
     925 + },
     926 + "Location": {
     927 + "properties": {
     928 + "path": {
     929 + "type": "string"
     930 + },
     931 + "layerID": {
     932 + "type": "string"
     933 + },
     934 + "annotations": {
     935 + "patternProperties": {
     936 + ".*": {
     937 + "type": "string"
     938 + }
     939 + },
     940 + "type": "object"
     941 + }
     942 + },
     943 + "type": "object",
     944 + "required": [
     945 + "path"
     946 + ]
     947 + },
     948 + "MixLockMetadata": {
     949 + "properties": {
     950 + "name": {
     951 + "type": "string"
     952 + },
     953 + "version": {
     954 + "type": "string"
     955 + },
     956 + "pkgHash": {
     957 + "type": "string"
     958 + },
     959 + "pkgHashExt": {
     960 + "type": "string"
     961 + }
     962 + },
     963 + "type": "object",
     964 + "required": [
     965 + "name",
     966 + "version",
     967 + "pkgHash",
     968 + "pkgHashExt"
     969 + ]
     970 + },
     971 + "NixStoreMetadata": {
     972 + "properties": {
     973 + "outputHash": {
     974 + "type": "string"
     975 + },
     976 + "output": {
     977 + "type": "string"
     978 + },
     979 + "files": {
     980 + "items": {
     981 + "type": "string"
     982 + },
     983 + "type": "array"
     984 + }
     985 + },
     986 + "type": "object",
     987 + "required": [
     988 + "outputHash",
     989 + "files"
     990 + ]
     991 + },
     992 + "NpmPackageJSONMetadata": {
     993 + "properties": {
     994 + "name": {
     995 + "type": "string"
     996 + },
     997 + "version": {
     998 + "type": "string"
     999 + },
     1000 + "author": {
     1001 + "type": "string"
     1002 + },
     1003 + "homepage": {
     1004 + "type": "string"
     1005 + },
     1006 + "description": {
     1007 + "type": "string"
     1008 + },
     1009 + "url": {
     1010 + "type": "string"
     1011 + },
     1012 + "private": {
     1013 + "type": "boolean"
     1014 + }
     1015 + },
     1016 + "type": "object",
     1017 + "required": [
     1018 + "name",
     1019 + "version",
     1020 + "author",
     1021 + "homepage",
     1022 + "description",
     1023 + "url",
     1024 + "private"
     1025 + ]
     1026 + },
     1027 + "NpmPackageLockJSONMetadata": {
     1028 + "properties": {
     1029 + "resolved": {
     1030 + "type": "string"
     1031 + },
     1032 + "integrity": {
     1033 + "type": "string"
     1034 + }
     1035 + },
     1036 + "type": "object",
     1037 + "required": [
     1038 + "resolved",
     1039 + "integrity"
     1040 + ]
     1041 + },
     1042 + "Package": {
     1043 + "properties": {
     1044 + "id": {
     1045 + "type": "string"
     1046 + },
     1047 + "name": {
     1048 + "type": "string"
     1049 + },
     1050 + "version": {
     1051 + "type": "string"
     1052 + },
     1053 + "type": {
     1054 + "type": "string"
     1055 + },
     1056 + "foundBy": {
     1057 + "type": "string"
     1058 + },
     1059 + "locations": {
     1060 + "items": {
     1061 + "$ref": "#/$defs/Location"
     1062 + },
     1063 + "type": "array"
     1064 + },
     1065 + "licenses": {
     1066 + "$ref": "#/$defs/licenses"
     1067 + },
     1068 + "language": {
     1069 + "type": "string"
     1070 + },
     1071 + "cpes": {
     1072 + "items": {
     1073 + "type": "string"
     1074 + },
     1075 + "type": "array"
     1076 + },
     1077 + "purl": {
     1078 + "type": "string"
     1079 + },
     1080 + "metadataType": {
     1081 + "type": "string"
     1082 + },
     1083 + "metadata": {
     1084 + "anyOf": [
     1085 + {
     1086 + "type": "null"
     1087 + },
     1088 + {
     1089 + "$ref": "#/$defs/AlpmMetadata"
     1090 + },
     1091 + {
     1092 + "$ref": "#/$defs/ApkMetadata"
     1093 + },
     1094 + {
     1095 + "$ref": "#/$defs/BinaryMetadata"
     1096 + },
     1097 + {
     1098 + "$ref": "#/$defs/CargoPackageMetadata"
     1099 + },
     1100 + {
     1101 + "$ref": "#/$defs/CocoapodsMetadata"
     1102 + },
     1103 + {
     1104 + "$ref": "#/$defs/ConanLockMetadata"
     1105 + },
     1106 + {
     1107 + "$ref": "#/$defs/ConanMetadata"
     1108 + },
     1109 + {
     1110 + "$ref": "#/$defs/DartPubMetadata"
     1111 + },
     1112 + {
     1113 + "$ref": "#/$defs/DotnetDepsMetadata"
     1114 + },
     1115 + {
     1116 + "$ref": "#/$defs/DpkgMetadata"
     1117 + },
     1118 + {
     1119 + "$ref": "#/$defs/GemMetadata"
     1120 + },
     1121 + {
     1122 + "$ref": "#/$defs/GolangBinMetadata"
     1123 + },
     1124 + {
     1125 + "$ref": "#/$defs/GolangModMetadata"
     1126 + },
     1127 + {
     1128 + "$ref": "#/$defs/HackageMetadata"
     1129 + },
     1130 + {
     1131 + "$ref": "#/$defs/JavaMetadata"
     1132 + },
     1133 + {
     1134 + "$ref": "#/$defs/KbPackageMetadata"
     1135 + },
     1136 + {
     1137 + "$ref": "#/$defs/LinuxKernelMetadata"
     1138 + },
     1139 + {
     1140 + "$ref": "#/$defs/LinuxKernelModuleMetadata"
     1141 + },
     1142 + {
     1143 + "$ref": "#/$defs/MixLockMetadata"
     1144 + },
     1145 + {
     1146 + "$ref": "#/$defs/NixStoreMetadata"
     1147 + },
     1148 + {
     1149 + "$ref": "#/$defs/NpmPackageJSONMetadata"
     1150 + },
     1151 + {
     1152 + "$ref": "#/$defs/NpmPackageLockJSONMetadata"
     1153 + },
     1154 + {
     1155 + "$ref": "#/$defs/PhpComposerJSONMetadata"
     1156 + },
     1157 + {
     1158 + "$ref": "#/$defs/PortageMetadata"
     1159 + },
     1160 + {
     1161 + "$ref": "#/$defs/PythonPackageMetadata"
     1162 + },
     1163 + {
     1164 + "$ref": "#/$defs/PythonPipfileLockMetadata"
     1165 + },
     1166 + {
     1167 + "$ref": "#/$defs/PythonRequirementsMetadata"
     1168 + },
     1169 + {
     1170 + "$ref": "#/$defs/RDescriptionFileMetadata"
     1171 + },
     1172 + {
     1173 + "$ref": "#/$defs/RebarLockMetadata"
     1174 + },
     1175 + {
     1176 + "$ref": "#/$defs/RpmMetadata"
     1177 + }
     1178 + ]
     1179 + }
     1180 + },
     1181 + "type": "object",
     1182 + "required": [
     1183 + "id",
     1184 + "name",
     1185 + "version",
     1186 + "type",
     1187 + "foundBy",
     1188 + "locations",
     1189 + "licenses",
     1190 + "language",
     1191 + "cpes",
     1192 + "purl"
     1193 + ]
     1194 + },
     1195 + "PhpComposerAuthors": {
     1196 + "properties": {
     1197 + "name": {
     1198 + "type": "string"
     1199 + },
     1200 + "email": {
     1201 + "type": "string"
     1202 + },
     1203 + "homepage": {
     1204 + "type": "string"
     1205 + }
     1206 + },
     1207 + "type": "object",
     1208 + "required": [
     1209 + "name"
     1210 + ]
     1211 + },
     1212 + "PhpComposerExternalReference": {
     1213 + "properties": {
     1214 + "type": {
     1215 + "type": "string"
     1216 + },
     1217 + "url": {
     1218 + "type": "string"
     1219 + },
     1220 + "reference": {
     1221 + "type": "string"
     1222 + },
     1223 + "shasum": {
     1224 + "type": "string"
     1225 + }
     1226 + },
     1227 + "type": "object",
     1228 + "required": [
     1229 + "type",
     1230 + "url",
     1231 + "reference"
     1232 + ]
     1233 + },
     1234 + "PhpComposerJSONMetadata": {
     1235 + "properties": {
     1236 + "name": {
     1237 + "type": "string"
     1238 + },
     1239 + "version": {
     1240 + "type": "string"
     1241 + },
     1242 + "source": {
     1243 + "$ref": "#/$defs/PhpComposerExternalReference"
     1244 + },
     1245 + "dist": {
     1246 + "$ref": "#/$defs/PhpComposerExternalReference"
     1247 + },
     1248 + "require": {
     1249 + "patternProperties": {
     1250 + ".*": {
     1251 + "type": "string"
     1252 + }
     1253 + },
     1254 + "type": "object"
     1255 + },
     1256 + "provide": {
     1257 + "patternProperties": {
     1258 + ".*": {
     1259 + "type": "string"
     1260 + }
     1261 + },
     1262 + "type": "object"
     1263 + },
     1264 + "require-dev": {
     1265 + "patternProperties": {
     1266 + ".*": {
     1267 + "type": "string"
     1268 + }
     1269 + },
     1270 + "type": "object"
     1271 + },
     1272 + "suggest": {
     1273 + "patternProperties": {
     1274 + ".*": {
     1275 + "type": "string"
     1276 + }
     1277 + },
     1278 + "type": "object"
     1279 + },
     1280 + "license": {
     1281 + "items": {
     1282 + "type": "string"
     1283 + },
     1284 + "type": "array"
     1285 + },
     1286 + "type": {
     1287 + "type": "string"
     1288 + },
     1289 + "notification-url": {
     1290 + "type": "string"
     1291 + },
     1292 + "bin": {
     1293 + "items": {
     1294 + "type": "string"
     1295 + },
     1296 + "type": "array"
     1297 + },
     1298 + "authors": {
     1299 + "items": {
     1300 + "$ref": "#/$defs/PhpComposerAuthors"
     1301 + },
     1302 + "type": "array"
     1303 + },
     1304 + "description": {
     1305 + "type": "string"
     1306 + },
     1307 + "homepage": {
     1308 + "type": "string"
     1309 + },
     1310 + "keywords": {
     1311 + "items": {
     1312 + "type": "string"
     1313 + },
     1314 + "type": "array"
     1315 + },
     1316 + "time": {
     1317 + "type": "string"
     1318 + }
     1319 + },
     1320 + "type": "object",
     1321 + "required": [
     1322 + "name",
     1323 + "version",
     1324 + "source",
     1325 + "dist"
     1326 + ]
     1327 + },
     1328 + "PomParent": {
     1329 + "properties": {
     1330 + "groupId": {
     1331 + "type": "string"
     1332 + },
     1333 + "artifactId": {
     1334 + "type": "string"
     1335 + },
     1336 + "version": {
     1337 + "type": "string"
     1338 + }
     1339 + },
     1340 + "type": "object",
     1341 + "required": [
     1342 + "groupId",
     1343 + "artifactId",
     1344 + "version"
     1345 + ]
     1346 + },
     1347 + "PomProject": {
     1348 + "properties": {
     1349 + "path": {
     1350 + "type": "string"
     1351 + },
     1352 + "parent": {
     1353 + "$ref": "#/$defs/PomParent"
     1354 + },
     1355 + "groupId": {
     1356 + "type": "string"
     1357 + },
     1358 + "artifactId": {
     1359 + "type": "string"
     1360 + },
     1361 + "version": {
     1362 + "type": "string"
     1363 + },
     1364 + "name": {
     1365 + "type": "string"
     1366 + },
     1367 + "description": {
     1368 + "type": "string"
     1369 + },
     1370 + "url": {
     1371 + "type": "string"
     1372 + }
     1373 + },
     1374 + "type": "object",
     1375 + "required": [
     1376 + "path",
     1377 + "groupId",
     1378 + "artifactId",
     1379 + "version",
     1380 + "name"
     1381 + ]
     1382 + },
     1383 + "PomProperties": {
     1384 + "properties": {
     1385 + "path": {
     1386 + "type": "string"
     1387 + },
     1388 + "name": {
     1389 + "type": "string"
     1390 + },
     1391 + "groupId": {
     1392 + "type": "string"
     1393 + },
     1394 + "artifactId": {
     1395 + "type": "string"
     1396 + },
     1397 + "version": {
     1398 + "type": "string"
     1399 + },
     1400 + "scope": {
     1401 + "type": "string"
     1402 + },
     1403 + "extraFields": {
     1404 + "patternProperties": {
     1405 + ".*": {
     1406 + "type": "string"
     1407 + }
     1408 + },
     1409 + "type": "object"
     1410 + }
     1411 + },
     1412 + "type": "object",
     1413 + "required": [
     1414 + "path",
     1415 + "name",
     1416 + "groupId",
     1417 + "artifactId",
     1418 + "version"
     1419 + ]
     1420 + },
     1421 + "PortageFileRecord": {
     1422 + "properties": {
     1423 + "path": {
     1424 + "type": "string"
     1425 + },
     1426 + "digest": {
     1427 + "$ref": "#/$defs/Digest"
     1428 + }
     1429 + },
     1430 + "type": "object",
     1431 + "required": [
     1432 + "path"
     1433 + ]
     1434 + },
     1435 + "PortageMetadata": {
     1436 + "properties": {
     1437 + "installedSize": {
     1438 + "type": "integer"
     1439 + },
     1440 + "files": {
     1441 + "items": {
     1442 + "$ref": "#/$defs/PortageFileRecord"
     1443 + },
     1444 + "type": "array"
     1445 + }
     1446 + },
     1447 + "type": "object",
     1448 + "required": [
     1449 + "installedSize",
     1450 + "files"
     1451 + ]
     1452 + },
     1453 + "PythonDirectURLOriginInfo": {
     1454 + "properties": {
     1455 + "url": {
     1456 + "type": "string"
     1457 + },
     1458 + "commitId": {
     1459 + "type": "string"
     1460 + },
     1461 + "vcs": {
     1462 + "type": "string"
     1463 + }
     1464 + },
     1465 + "type": "object",
     1466 + "required": [
     1467 + "url"
     1468 + ]
     1469 + },
     1470 + "PythonFileDigest": {
     1471 + "properties": {
     1472 + "algorithm": {
     1473 + "type": "string"
     1474 + },
     1475 + "value": {
     1476 + "type": "string"
     1477 + }
     1478 + },
     1479 + "type": "object",
     1480 + "required": [
     1481 + "algorithm",
     1482 + "value"
     1483 + ]
     1484 + },
     1485 + "PythonFileRecord": {
     1486 + "properties": {
     1487 + "path": {
     1488 + "type": "string"
     1489 + },
     1490 + "digest": {
     1491 + "$ref": "#/$defs/PythonFileDigest"
     1492 + },
     1493 + "size": {
     1494 + "type": "string"
     1495 + }
     1496 + },
     1497 + "type": "object",
     1498 + "required": [
     1499 + "path"
     1500 + ]
     1501 + },
     1502 + "PythonPackageMetadata": {
     1503 + "properties": {
     1504 + "name": {
     1505 + "type": "string"
     1506 + },
     1507 + "version": {
     1508 + "type": "string"
     1509 + },
     1510 + "author": {
     1511 + "type": "string"
     1512 + },
     1513 + "authorEmail": {
     1514 + "type": "string"
     1515 + },
     1516 + "platform": {
     1517 + "type": "string"
     1518 + },
     1519 + "files": {
     1520 + "items": {
     1521 + "$ref": "#/$defs/PythonFileRecord"
     1522 + },
     1523 + "type": "array"
     1524 + },
     1525 + "sitePackagesRootPath": {
     1526 + "type": "string"
     1527 + },
     1528 + "topLevelPackages": {
     1529 + "items": {
     1530 + "type": "string"
     1531 + },
     1532 + "type": "array"
     1533 + },
     1534 + "directUrlOrigin": {
     1535 + "$ref": "#/$defs/PythonDirectURLOriginInfo"
     1536 + }
     1537 + },
     1538 + "type": "object",
     1539 + "required": [
     1540 + "name",
     1541 + "version",
     1542 + "author",
     1543 + "authorEmail",
     1544 + "platform",
     1545 + "sitePackagesRootPath"
     1546 + ]
     1547 + },
     1548 + "PythonPipfileLockMetadata": {
     1549 + "properties": {
     1550 + "hashes": {
     1551 + "items": {
     1552 + "type": "string"
     1553 + },
     1554 + "type": "array"
     1555 + },
     1556 + "index": {
     1557 + "type": "string"
     1558 + }
     1559 + },
     1560 + "type": "object",
     1561 + "required": [
     1562 + "hashes",
     1563 + "index"
     1564 + ]
     1565 + },
     1566 + "PythonRequirementsMetadata": {
     1567 + "properties": {
     1568 + "name": {
     1569 + "type": "string"
     1570 + },
     1571 + "extras": {
     1572 + "items": {
     1573 + "type": "string"
     1574 + },
     1575 + "type": "array"
     1576 + },
     1577 + "versionConstraint": {
     1578 + "type": "string"
     1579 + },
     1580 + "url": {
     1581 + "type": "string"
     1582 + },
     1583 + "markers": {
     1584 + "patternProperties": {
     1585 + ".*": {
     1586 + "type": "string"
     1587 + }
     1588 + },
     1589 + "type": "object"
     1590 + }
     1591 + },
     1592 + "type": "object",
     1593 + "required": [
     1594 + "name",
     1595 + "extras",
     1596 + "versionConstraint",
     1597 + "url",
     1598 + "markers"
     1599 + ]
     1600 + },
     1601 + "RDescriptionFileMetadata": {
     1602 + "properties": {
     1603 + "title": {
     1604 + "type": "string"
     1605 + },
     1606 + "description": {
     1607 + "type": "string"
     1608 + },
     1609 + "author": {
     1610 + "type": "string"
     1611 + },
     1612 + "maintainer": {
     1613 + "type": "string"
     1614 + },
     1615 + "url": {
     1616 + "items": {
     1617 + "type": "string"
     1618 + },
     1619 + "type": "array"
     1620 + },
     1621 + "repository": {
     1622 + "type": "string"
     1623 + },
     1624 + "built": {
     1625 + "type": "string"
     1626 + },
     1627 + "needsCompilation": {
     1628 + "type": "boolean"
     1629 + },
     1630 + "imports": {
     1631 + "items": {
     1632 + "type": "string"
     1633 + },
     1634 + "type": "array"
     1635 + },
     1636 + "depends": {
     1637 + "items": {
     1638 + "type": "string"
     1639 + },
     1640 + "type": "array"
     1641 + },
     1642 + "suggests": {
     1643 + "items": {
     1644 + "type": "string"
     1645 + },
     1646 + "type": "array"
     1647 + }
     1648 + },
     1649 + "type": "object"
     1650 + },
     1651 + "RebarLockMetadata": {
     1652 + "properties": {
     1653 + "name": {
     1654 + "type": "string"
     1655 + },
     1656 + "version": {
     1657 + "type": "string"
     1658 + },
     1659 + "pkgHash": {
     1660 + "type": "string"
     1661 + },
     1662 + "pkgHashExt": {
     1663 + "type": "string"
     1664 + }
     1665 + },
     1666 + "type": "object",
     1667 + "required": [
     1668 + "name",
     1669 + "version",
     1670 + "pkgHash",
     1671 + "pkgHashExt"
     1672 + ]
     1673 + },
     1674 + "Relationship": {
     1675 + "properties": {
     1676 + "parent": {
     1677 + "type": "string"
     1678 + },
     1679 + "child": {
     1680 + "type": "string"
     1681 + },
     1682 + "type": {
     1683 + "type": "string"
     1684 + },
     1685 + "metadata": true
     1686 + },
     1687 + "type": "object",
     1688 + "required": [
     1689 + "parent",
     1690 + "child",
     1691 + "type"
     1692 + ]
     1693 + },
     1694 + "RpmMetadata": {
     1695 + "properties": {
     1696 + "name": {
     1697 + "type": "string"
     1698 + },
     1699 + "version": {
     1700 + "type": "string"
     1701 + },
     1702 + "epoch": {
     1703 + "oneOf": [
     1704 + {
     1705 + "type": "integer"
     1706 + },
     1707 + {
     1708 + "type": "null"
     1709 + }
     1710 + ]
     1711 + },
     1712 + "architecture": {
     1713 + "type": "string"
     1714 + },
     1715 + "release": {
     1716 + "type": "string"
     1717 + },
     1718 + "sourceRpm": {
     1719 + "type": "string"
     1720 + },
     1721 + "size": {
     1722 + "type": "integer"
     1723 + },
     1724 + "vendor": {
     1725 + "type": "string"
     1726 + },
     1727 + "modularityLabel": {
     1728 + "type": "string"
     1729 + },
     1730 + "files": {
     1731 + "items": {
     1732 + "$ref": "#/$defs/RpmdbFileRecord"
     1733 + },
     1734 + "type": "array"
     1735 + }
     1736 + },
     1737 + "type": "object",
     1738 + "required": [
     1739 + "name",
     1740 + "version",
     1741 + "epoch",
     1742 + "architecture",
     1743 + "release",
     1744 + "sourceRpm",
     1745 + "size",
     1746 + "vendor",
     1747 + "modularityLabel",
     1748 + "files"
     1749 + ]
     1750 + },
     1751 + "RpmdbFileRecord": {
     1752 + "properties": {
     1753 + "path": {
     1754 + "type": "string"
     1755 + },
     1756 + "mode": {
     1757 + "type": "integer"
     1758 + },
     1759 + "size": {
     1760 + "type": "integer"
     1761 + },
     1762 + "digest": {
     1763 + "$ref": "#/$defs/Digest"
     1764 + },
     1765 + "userName": {
     1766 + "type": "string"
     1767 + },
     1768 + "groupName": {
     1769 + "type": "string"
     1770 + },
     1771 + "flags": {
     1772 + "type": "string"
     1773 + }
     1774 + },
     1775 + "type": "object",
     1776 + "required": [
     1777 + "path",
     1778 + "mode",
     1779 + "size",
     1780 + "digest",
     1781 + "userName",
     1782 + "groupName",
     1783 + "flags"
     1784 + ]
     1785 + },
     1786 + "Schema": {
     1787 + "properties": {
     1788 + "version": {
     1789 + "type": "string"
     1790 + },
     1791 + "url": {
     1792 + "type": "string"
     1793 + }
     1794 + },
     1795 + "type": "object",
     1796 + "required": [
     1797 + "version",
     1798 + "url"
     1799 + ]
     1800 + },
     1801 + "SearchResult": {
     1802 + "properties": {
     1803 + "classification": {
     1804 + "type": "string"
     1805 + },
     1806 + "lineNumber": {
     1807 + "type": "integer"
     1808 + },
     1809 + "lineOffset": {
     1810 + "type": "integer"
     1811 + },
     1812 + "seekPosition": {
     1813 + "type": "integer"
     1814 + },
     1815 + "length": {
     1816 + "type": "integer"
     1817 + },
     1818 + "value": {
     1819 + "type": "string"
     1820 + }
     1821 + },
     1822 + "type": "object",
     1823 + "required": [
     1824 + "classification",
     1825 + "lineNumber",
     1826 + "lineOffset",
     1827 + "seekPosition",
     1828 + "length"
     1829 + ]
     1830 + },
     1831 + "Secrets": {
     1832 + "properties": {
     1833 + "location": {
     1834 + "$ref": "#/$defs/Coordinates"
     1835 + },
     1836 + "secrets": {
     1837 + "items": {
     1838 + "$ref": "#/$defs/SearchResult"
     1839 + },
     1840 + "type": "array"
     1841 + }
     1842 + },
     1843 + "type": "object",
     1844 + "required": [
     1845 + "location",
     1846 + "secrets"
     1847 + ]
     1848 + },
     1849 + "Source": {
     1850 + "properties": {
     1851 + "id": {
     1852 + "type": "string"
     1853 + },
     1854 + "type": {
     1855 + "type": "string"
     1856 + },
     1857 + "target": true
     1858 + },
     1859 + "type": "object",
     1860 + "required": [
     1861 + "id",
     1862 + "type",
     1863 + "target"
     1864 + ]
     1865 + },
     1866 + "licenses": {
     1867 + "items": {
     1868 + "$ref": "#/$defs/License"
     1869 + },
     1870 + "type": "array"
     1871 + }
     1872 + }
     1873 +}
     1874 + 
  • ■ ■ ■ ■ ■
    syft/pkg/cataloger/java/parse_pom_xml.go
    skipped 68 lines
    69 69   m := pkg.JavaMetadata{
    70 70   PomProperties: &pkg.PomProperties{
    71 71   GroupID: resolveProperty(pom, dep.GroupID),
     72 + Scope: resolveProperty(pom, dep.Scope),
    72 73   },
    73 74   }
    74 75   
    skipped 92 lines
  • ■ ■ ■ ■ ■
    syft/pkg/cataloger/java/parse_pom_xml_test.go
    skipped 38 lines
    39 39   Type: pkg.JavaPkg,
    40 40   MetadataType: pkg.JavaMetadataType,
    41 41   Metadata: pkg.JavaMetadata{
    42  - PomProperties: &pkg.PomProperties{GroupID: "junit"},
     42 + PomProperties: &pkg.PomProperties{
     43 + GroupID: "junit",
     44 + Scope: "test",
     45 + },
    43 46   },
    44 47   },
    45 48   },
    skipped 37 lines
    83 86   Type: pkg.JavaPkg,
    84 87   MetadataType: pkg.JavaMetadataType,
    85 88   Metadata: pkg.JavaMetadata{
    86  - PomProperties: &pkg.PomProperties{GroupID: "org.junit.jupiter"},
     89 + PomProperties: &pkg.PomProperties{
     90 + GroupID: "org.junit.jupiter",
     91 + Scope: "test",
     92 + },
    87 93   },
    88 94   },
    89 95   {
    skipped 4 lines
    94 100   Type: pkg.JavaPkg,
    95 101   MetadataType: pkg.JavaMetadataType,
    96 102   Metadata: pkg.JavaMetadata{
    97  - PomProperties: &pkg.PomProperties{GroupID: "org.assertj"},
     103 + PomProperties: &pkg.PomProperties{
     104 + GroupID: "org.assertj",
     105 + Scope: "test",
     106 + },
    98 107   },
    99 108   },
    100 109   {
    skipped 4 lines
    105 114   Type: pkg.JavaPkg,
    106 115   MetadataType: pkg.JavaMetadataType,
    107 116   Metadata: pkg.JavaMetadata{
    108  - PomProperties: &pkg.PomProperties{GroupID: "commons-io"},
     117 + PomProperties: &pkg.PomProperties{
     118 + GroupID: "commons-io",
     119 + Scope: "test",
     120 + },
    109 121   },
    110 122   },
    111 123   {
    skipped 4 lines
    116 128   Type: pkg.JavaPkg,
    117 129   MetadataType: pkg.JavaMetadataType,
    118 130   Metadata: pkg.JavaMetadata{
    119  - PomProperties: &pkg.PomProperties{GroupID: "org.mockito"},
     131 + PomProperties: &pkg.PomProperties{
     132 + GroupID: "org.mockito",
     133 + Scope: "test",
     134 + },
    120 135   },
    121 136   },
    122 137   {
    skipped 4 lines
    127 142   Type: pkg.JavaPkg,
    128 143   MetadataType: pkg.JavaMetadataType,
    129 144   Metadata: pkg.JavaMetadata{
    130  - PomProperties: &pkg.PomProperties{GroupID: "org.graalvm.js"},
     145 + PomProperties: &pkg.PomProperties{
     146 + GroupID: "org.graalvm.js",
     147 + Scope: "test",
     148 + },
    131 149   },
    132 150   },
    133 151   {
    skipped 4 lines
    138 156   Type: pkg.JavaPkg,
    139 157   MetadataType: pkg.JavaMetadataType,
    140 158   Metadata: pkg.JavaMetadata{
    141  - PomProperties: &pkg.PomProperties{GroupID: "org.graalvm.js"},
     159 + PomProperties: &pkg.PomProperties{
     160 + GroupID: "org.graalvm.js",
     161 + Scope: "test",
     162 + },
    142 163   },
    143 164   },
    144 165   {
    skipped 4 lines
    149 170   Type: pkg.JavaPkg,
    150 171   MetadataType: pkg.JavaMetadataType,
    151 172   Metadata: pkg.JavaMetadata{
    152  - PomProperties: &pkg.PomProperties{GroupID: "org.apache.commons"},
     173 + PomProperties: &pkg.PomProperties{
     174 + GroupID: "org.apache.commons",
     175 + Scope: "test",
     176 + },
    153 177   },
    154 178   },
    155 179   {
    skipped 4 lines
    160 184   Type: pkg.JavaPkg,
    161 185   MetadataType: pkg.JavaMetadataType,
    162 186   Metadata: pkg.JavaMetadata{
    163  - PomProperties: &pkg.PomProperties{GroupID: "org.openjdk.jmh"},
     187 + PomProperties: &pkg.PomProperties{
     188 + GroupID: "org.openjdk.jmh",
     189 + Scope: "test",
     190 + },
    164 191   },
    165 192   },
    166 193   {
    skipped 4 lines
    171 198   Type: pkg.JavaPkg,
    172 199   MetadataType: pkg.JavaMetadataType,
    173 200   Metadata: pkg.JavaMetadata{
    174  - PomProperties: &pkg.PomProperties{GroupID: "org.openjdk.jmh"},
     201 + PomProperties: &pkg.PomProperties{
     202 + GroupID: "org.openjdk.jmh",
     203 + Scope: "test",
     204 + },
    175 205   },
    176 206   },
    177 207   },
    skipped 172 lines
  • ■ ■ ■ ■ ■
    syft/pkg/java_metadata.go
    skipped 31 lines
    32 32   GroupID string `mapstructure:"groupId" json:"groupId" cyclonedx:"groupID"`
    33 33   ArtifactID string `mapstructure:"artifactId" json:"artifactId" cyclonedx:"artifactID"`
    34 34   Version string `mapstructure:"version" json:"version"`
     35 + Scope string `mapstructure:"scope" json:"scope,omitempty"`
    35 36   Extra map[string]string `mapstructure:",remain" json:"extraFields,omitempty"`
    36 37  }
    37 38   
    skipped 34 lines
Please wait...
Page is in error, reload to recover