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

generate eve sbom in build process #2977

Merged
merged 1 commit into from
Dec 22, 2022
Merged

Conversation

deitch
Copy link
Contributor

@deitch deitch commented Dec 19, 2022

  • adds a target make sbom, which takes the generated rootfs.tar, expands it to a temporary directory (excluding special devices, which would cause it to fail), runs syft on it, saves the output into the installer/ directory, and removes the tmpdir
  • adds sbom to the dependencies of make eve, so that the sbom is generated with every build and included in the lfedge/eve docker image
  • adds a command sbom, so that you can run docker run lfedge/eve sbom and get an sbom in spdx json format

Signed-off-by: Avi Deitcher <avi@deitcher.net>
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM

@eriknordmark eriknordmark merged commit 6481bec into lf-edge:master Dec 22, 2022
@deitch deitch deleted the syft-scan branch December 22, 2022 15:53
@deitch
Copy link
Contributor Author

deitch commented Dec 22, 2022

@eriknordmark now that this is in, we will have an SBoM in every build. We can iterate on it by improving the content. For example, the Dockerfile ADD scanner, and the scanner you wrote, and kernel improvements, etc.

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