Skip to content

sbom-create-commands does not work for custom builder #1211

Description

@peguin40

Do you want to request a feature or report a bug? Report a bug

Please provide the following info:

  • MBT Version: 1.2.45 -> current latest version
  • OS Version: Github Actions
  • If possible, provide a link to the project.

Steps to Reproduce:

  1. Add sbom-create-commands to build-parameters
  2. Observe pipeline run uses default bom creation commands instead of provided sbom-create-commands

According to https://github.com/SAP/cloud-mta-build-tool/blob/v1.2.45/internal/commands/commands.go#L363 , by including sbom-create-commands in builder build-parameters should use it instead of the provided bom creation commands. However it does not work

I have tried the following structures:

build-parameters:
      builder: custom
      build-result: gen
      commands:
        - npm run build
      sbom-create-commands: ["npx @cyclonedx/cyclonedx-npm --output-format XML --spec-version 1.4 --output-file bom-npm-sidecar.xml --omit dev"]
build-parameters:
      builder: custom
      build-result: gen
      commands:
        - npm run build
      sbom-create-commands:
        - npx @cyclonedx/cyclonedx-npm --output-format XML --spec-version 1.4 --output-file bom-npm-sidecar.xml --omit dev

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions