diff --git a/sbom-utility-scripts/Dockerfile b/sbom-utility-scripts/Dockerfile index 51794d9..e9e727a 100644 --- a/sbom-utility-scripts/Dockerfile +++ b/sbom-utility-scripts/Dockerfile @@ -4,7 +4,6 @@ WORKDIR /scripts COPY scripts/merge_syft_sboms.py /scripts COPY scripts/merge-cachi2-sboms-script/merge_cachi2_sboms.py /scripts -COPY scripts/create_purl_sbom.py /scripts COPY scripts/base-images-sbom-script/app/base_images_sbom_script.py /scripts COPY scripts/base-images-sbom-script/app/requirements.txt /scripts/base-images-sbom-script-requirements.txt COPY scripts/index-image-sbom-script/requirements.txt /scripts/index-image-sbom-script-requirements.txt diff --git a/sbom-utility-scripts/scripts/create_purl_sbom.py b/sbom-utility-scripts/scripts/create_purl_sbom.py deleted file mode 100644 index bb22db5..0000000 --- a/sbom-utility-scripts/scripts/create_purl_sbom.py +++ /dev/null @@ -1,10 +0,0 @@ -import json - -with open("./sbom-cyclonedx.json") as f: - cyclonedx_sbom = json.load(f) - -purls = [{"purl": component["purl"]} for component in cyclonedx_sbom.get("components", []) if "purl" in component] -purl_content = {"image_contents": {"dependencies": purls}} - -with open("sbom-purl.json", "w") as output_file: - json.dump(purl_content, output_file, indent=4)