I would like to have syft generate SPDX SBOMs containing PURLs only, no CPEs. My thought is that using a template would be the “clean” way to do it. The alternative is to generate an SPDX SBOM, then post-process the output and strip out CPEs, leaving only PURLs. I would like some guidance on which approach I should take. If someone has already done the same thing using a template, I’d like to get a copy of the template.
I would like the SBOM to also be compliant (part of “clean” in my mind)! The project I’m working on is focused on PURLs so removing CPEs greatly reduces the size.