diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml index 5bcff73779aa0176bf3de9bfc39ef6c46848ae68..e27b26a6629db253fdba597e332c6437d3163f80 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"