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

[STONEBLD-2727] [DO NOT MERGE] Added sbomType parameter #1369

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions task/prefetch-dependencies/0.1/prefetch-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down