From e11766240a18850f443128c192adeccf5707fc55 Mon Sep 17 00:00:00 2001 From: Jindrich Luza Date: Wed, 4 Sep 2024 13:17:59 +0200 Subject: [PATCH] Added sbomType parameter sbomType parameter is used to select sbom output format for cachi2 fetch-deps command --- task/prefetch-dependencies/0.1/prefetch-dependencies.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/task/prefetch-dependencies/0.1/prefetch-dependencies.yaml b/task/prefetch-dependencies/0.1/prefetch-dependencies.yaml index 688b989a7..ccc6f6b6d 100644 --- a/task/prefetch-dependencies/0.1/prefetch-dependencies.yaml +++ b/task/prefetch-dependencies/0.1/prefetch-dependencies.yaml @@ -53,6 +53,10 @@ spec: type: string description: The name of the key in the ConfigMap that contains the CA bundle data. default: ca-bundle.crt + - name: sbomType + type: string + description: The type of SBOM to generate. Supported values are 'spdx' and 'cyclonedx'. + default: cyclonedx stepTemplate: env: @@ -106,9 +110,9 @@ spec: fi if [ -f /mnt/config/config.yaml ]; then - config_flag=--config-file=/mnt/config/config.yaml + config_flag=--config-file=/mnt/config/config.yaml --sbom-type=$(params.sbomType) else - config_flag="" + config_flag="--sbom-type=$(params.sbomType)" fi if [ "$DEV_PACKAGE_MANAGERS" = "true" ]; then