Skip to content

Encapsulate all artifacts in syft JSON output #555

@wagoodman

Description

@wagoodman

Today we output a json structure similar to the following:

{
   artifacts: [
      # list of packages
   ],
   relationships: [
      # list of package relationships
   ]
   distro: {...},
   ...
}

As we move forward and want to capture more kinds of artifacts we could consider moving to something closer to this:

{
   artifacts: {
      packages: [
         # list of packages
      ],
      files: [
         # list of files
      ],
      distro: {...},
      # more artifact types...
   },
   relationships: [
      # list of relationships for ANY artifact
   ],
   ...
}

In this way we can agnostically express all artifacts kinds without filling the root-level object up with new elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions