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] Builder should copy bom files to /layers/config/sbom #738

Closed
buildpack-bot opened this issue Oct 4, 2021 · 1 comment
Closed

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 (at the end of buildpacks' /bin/build execution):

/layers
  /buildpack.id
    launch.bom.cdx.json
    build.bom.cdx.json
    cache-true-launch-false.toml
    cache-true-launch-false.bom.cdx.json
    /cache-true-launch-false
    cache-true-launch-true.toml
    cache-true-launch-true.bom.cdx.json
    /cache-true-launch-true

The builder should copy the bom files to create the following file tree:

/layers
  /config
    /sbom
      /launch
        /buildpack.id
          bom.cdx.json
          /cache-true-launch-true
            bom.cdx.json
      /build <- everything that is not "launch=true" should go here
        /buildpack.id
          bom.cdx.json
          /cache-true-launch-false
            bom.cdx.json
      /cache <- this is a suggested addition from https://github.com/buildpacks/lifecycle/pull/741; everything that is "cache=true" should go here
        /buildpack.id
          /cache-true-launch-true
            bom.cdx.json
          /cache-true-launch-false
            bom.cdx.json

Note that cdx could be replaced with spdx.

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

2 participants