From 2e7dc62ea4d91ac4af80ca3652547992db71c966 Mon Sep 17 00:00:00 2001 From: Clement Bois <clement.bois@orange.com> Date: Fri, 27 Jan 2023 12:05:41 +0100 Subject: [PATCH] fix: PYTHON_PROJECT_DIR support for py-sbom --- templates/gitlab-ci-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml index 5bcff73..e27b26a 100644 --- a/templates/gitlab-ci-python.yml +++ b/templates/gitlab-ci-python.yml @@ -867,7 +867,7 @@ py-sbom: mkdir -p $PIP_CACHE_DIR mv ./syft $python_sbom_syft fi - - $python_sbom_syft dir:${PYTHON_PROJECT_DIR} $PYTHON_SBOM_OPTS -o cyclonedx-json > reports/py-sbom.cyclonedx.json + - $python_sbom_syft dir:. $PYTHON_SBOM_OPTS -o cyclonedx-json > reports/py-sbom.cyclonedx.json - chmod a+r reports/py-sbom.cyclonedx.json artifacts: name: "Python SBOM from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG" -- GitLab