Skip to content

Commit

Permalink
CI: Set SBOM_PYTHON_APPS_PATH env variable only if not set already
Browse files Browse the repository at this point in the history
Pick-to: 6.8
Change-Id: Ie8849721ff576079d708412c441cdf4830dbe427
Reviewed-by: Toni Saario <toni.saario@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
  • Loading branch information
faltsi committed Oct 7, 2024
1 parent 2752022 commit cfa106c
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions coin/instructions/prepare_building_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -519,16 +519,26 @@ instructions:
variableName: SBOM_PYTHON_APPS_PATH
variableValue: "{{.Env.PIP3_PATH}}"
enable_if:
condition: property
property: host.os
equals_value: Windows
condition: and
conditions:
- condition: property
property: host.os
equals_value: Windows
- condition: runtime
env_var: SBOM_PYTHON_APPS_PATH
equals_value: null
- type: EnvironmentVariable
variableName: SBOM_PYTHON_APPS_PATH
variableValue: "{{.Env.PYTHON3_PATH}}"
disable_if:
condition: property
property: host.os
equals_value: Windows
enable_if:
condition: and
conditions:
- condition: property
property: host.os
not_equals_value: Windows
- condition: runtime
env_var: SBOM_PYTHON_APPS_PATH
equals_value: null


# SBOM verification and auditing
Expand Down

0 comments on commit cfa106c

Please sign in to comment.