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

Feature request: allow setting SBOM options to container builder #1016

Closed
sambonbonne opened this issue Apr 16, 2024 · 2 comments
Closed

Feature request: allow setting SBOM options to container builder #1016

sambonbonne opened this issue Apr 16, 2024 · 2 comments

Comments

@sambonbonne
Copy link

Hello,

Some tools allow generating SBOM while building: docker buildx has a --sbom argument and podman build has it and some more too (I didn't find the option in Kaniko).

It would be nice to be able to set the --sbom parameter in the options configuration, for example:

{
  "container": {
    "executor": "@nx-tools/nx-container:build",
    "options": {
      "engine": "docker",
      "file": "path/to/Dockerfile",
      "sbom": "true",
      "metadata": {
        "images": [
          "my.registry.com/workspace/image"
        ],
        "load": true
      }
    }
  }
}

Note: in the example, I set the --sbom argument to true to simplify but it can be a string with more configuration.

Do you think it may be possible to add this argument, despite the fact that the option is different on Docker and Podman and even absent in Kaniko ?

@gperdomor
Copy link
Owner

@sambonbonne the option was added in version 5.3.0 only for docker engine... I hope that solve your issue 🙏🏻

@sambonbonne
Copy link
Author

That was quick! Thanks for this!

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

No branches or pull requests

2 participants