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
Change-Id: Ie8849721ff576079d708412c441cdf4830dbe427
Reviewed-by: Toni Saario <toni.saario@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit cfa106c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
  • Loading branch information
faltsi authored and Qt Cherry-pick Bot committed Oct 7, 2024
1 parent be974c4 commit 2822db2
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 @@ -499,16 +499,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 2822db2

Please sign in to comment.