Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC #0095] Lifecycle should merge CycloneDX bom files #737

Open
buildpack-bot opened this issue Oct 4, 2021 · 2 comments
Open

[RFC #0095] Lifecycle should merge CycloneDX bom files #737

buildpack-bot opened this issue Oct 4, 2021 · 2 comments

Comments

@buildpack-bot
Copy link
Member

buildpack-bot commented Oct 4, 2021

This issue have been automatically created from pull request buildpacks/rfcs#166.

A/C

Given for example the following file tree:

/layers
  /config
    /sbom
      /launch
        /buildpack.id
          bom.cdx.json <- should be annotated with io.buildpacks.bom.buildpack.id (only) in the merged file
          /cache-true-launch-true
            bom.cdx.json <- should be annotated with io.buildpacks.bom.buildpack.id and io.buildpacks.bom.layer.name in the merged file
      /build
        /buildpack.id
          bom.cdx.json <- should be annotated with io.buildpacks.bom.buildpack.id (only) in the merged file
          /cache-true-launch-false
            bom.cdx.json <- should be annotated with io.buildpacks.bom.buildpack.id and io.buildpacks.bom.layer.name in the merged file

The lifecycle should create a merged launch bom containing bom entries from /layers/config/sbom/launch and similarly for build. See Slack inquiry on whether the merged bom should live at /layers/config/sbom/launch/bom.cdx.json or /layers/config/launch/sbom/bom.cdx.json.

Note that this is only applicable to cdx files, as spdx does not have readily available tooling.

@aemengo
Copy link
Contributor

aemengo commented Oct 12, 2021

Related cycloneDX issue here: CycloneDX/cyclonedx-go#9
Let's see if they can provide an easy API method for us to do the merging.

@VinodAnandan
Copy link
Contributor

Related PR : CycloneDX/cyclonedx-go#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants