Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kzantow
Copy link
Contributor

@kzantow kzantow commented Jan 11, 2022

This aligns the SPDX output more correctly with the SPDX 2.2 spec.

These changes are required for Syft's generated SPDX to import properly using the spdx/tools-golang jsonloader

Links to some pertinent resources:

Signed-off-by: Keith Zantow <[email protected]>
@kzantow kzantow changed the title Fix some SPDX export issues [WiP] Fix some SPDX export issues Jan 12, 2022
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
@kzantow kzantow changed the title [WiP] Fix some SPDX export issues Align SPDX export more with SPDX 2.2 specification Jan 12, 2022
return ""
case pkg.RpmdbMetadata:
return metadata.Vendor
return "Organization: " + metadata.Vendor
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be Person: ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we won't be able to tell 100% of the time (org is a good guess)

SPDXID string `json:"SPDXID"`
// Identify name of this SpdxElement.
Name string `json:"name"`
Name string `json:"name,omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this will have other adverse effects since it is used by things such as spdx22json.Package .Item.Element but not allowed in spdx22json.File, something like this is needed.

Signed-off-by: Keith Zantow <[email protected]>
@kzantow kzantow marked this pull request as ready for review January 13, 2022 20:26
@kzantow kzantow merged commit f59af25 into anchore:main Jan 13, 2022
@kzantow kzantow deleted the spdx-export-issues branch January 13, 2022 20:27
spiffcs added a commit that referenced this pull request Jan 19, 2022
…hub.com/hectorj2f/syft into hectorj2f/add_dependencies_to_cyclonedx

* 'hectorj2f/add_dependencies_to_cyclonedx' of https://github.com/hectorj2f/syft: (29 commits)
  Improve CycloneDX format output (#710)
  Add additional PHP metadata (#753)
  Update Syft formats for SyftJson (#752)
  Add support for "file" source type in syftjson unmarshaling (#750)
  remove contains file from spdx dependency generation
  support .sar for java ecosystem (#748)
  Start developer documentation (#746)
  Align SPDX export more with SPDX 2.2 specification (#743)
  Replace distro type (#742)
  update goreleaser with windows checksums (#740)
  bump stereoscope version to remove old containerd (#741)
  Add support for multiple output files in different formats (#732)
  Add support for searching for jars within archives (#734)
  683 windows filepath (#735)
  Fix CPE encode/decode when it contains special chars (#714)
  support .par for java ecosystems (#727)
  Add arm64 support to install script (#729)
  Revert "bump goreleaser to v1.2 (#720)" (#731)
  Add a version flag (#722)
  Add lpkg as java package format (#694)
  ...
fengshunli pushed a commit to fengshunli/syft that referenced this pull request Jan 24, 2022
spiffcs pushed a commit that referenced this pull request Jan 24, 2022
jonasagx pushed a commit to jonasagx/syft that referenced this pull request Jan 28, 2022
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants