diff --git a/task/oci-copy-oci-ta/0.1/README.md b/task/oci-copy-oci-ta/0.1/README.md index 48eba0f77b..b75bdb4724 100644 --- a/task/oci-copy-oci-ta/0.1/README.md +++ b/task/oci-copy-oci-ta/0.1/README.md @@ -9,6 +9,7 @@ Given a file in the user's source directory, copy content from arbitrary urls in |BEARER_TOKEN_SECRET_NAME|Name of a secret which will be made available to the build as an Authorization header. Note, the token will be sent to all servers found in the oci-copy.yaml file. If you do not wish to send the token to all servers, different taskruns and therefore different oci artifacts must be used.|does-not-exist|false| |IMAGE|Reference of the image we will push||true| |OCI_COPY_FILE|Path to the oci copy file.|./oci-copy.yaml|false| +|SBOM_TYPE|Select the SBOM format to generate. Valid values: spdx, cyclonedx.|cyclonedx|false| |SOURCE_ARTIFACT|The Trusted Artifact URI pointing to the artifact with the application source code.||true| ## Results diff --git a/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml b/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml index c6daaf6753..a49dbb7ff1 100644 --- a/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml +++ b/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml @@ -37,6 +37,11 @@ spec: description: Path to the oci copy file. type: string default: ./oci-copy.yaml + - name: SBOM_TYPE + description: 'Select the SBOM format to generate. Valid values: spdx, + cyclonedx.' + type: string + default: cyclonedx - name: SOURCE_ARTIFACT description: The Trusted Artifact URI pointing to the artifact with the application source code. @@ -61,6 +66,8 @@ spec: value: $(params.IMAGE) - name: OCI_COPY_FILE value: $(params.OCI_COPY_FILE) + - name: SBOM_TYPE + value: $(params.SBOM_TYPE) volumeMounts: - mountPath: /var/workdir name: workdir @@ -294,43 +301,32 @@ spec: add: - SETFCAP - name: sbom-generate - image: quay.io/konflux-ci/yq:latest@sha256:93bb15cff64b708263055a5814b24a0b450d8724b86a7e5206396f25d81fcc21 + image: quay.io/konflux-ci/sbom-utility-scripts@sha256:1939901046f2ec0afda6d48f32dc82f991d9a4e2b4b4513635b9c79e3d4c2872 workingDir: /var/workdir script: | #!/bin/bash - cat >sbom-cyclonedx.json <sbom-cyclonedx.json <