Commit 1c01ec91 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix-py-sbom-project-dir' into 'master'

fix: PYTHON_PROJECT_DIR support for py-sbom

Closes #43

See merge request to-be-continuous/python!70
parents 1b559dd6 2e7dc62e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"