Witness is a pluggable framework for software supply chain risk management. It automates, normalizes, and verifies software artifact provenance.
415
stars
59
forks
source link
[Bug]: witness cli doesn't always reconise sbom file as sboms #513
Open
xNok opened 1 month ago
What steps did you take and what happened:
Here is how to reproduce the issue, there is not really build here; we are only generating the sbom for a known image using trivy.
This will return the error.
We can run the same command without the
-a sbom
to debug the products, the sbom file is listed as a product as below:The sbom is recorded but the Mime type is invalid. I thought the issues might be in
go-witness
and made the following test: https://github.com/xNok/go-witness/commit/7cc2d62b3995765412ea154ee881a44ee2c0e780#diff-497bc6b0bf036ac033a672665b1a6e3724c6bacb95993554bf1cb55b7c6f3287It turns out this test passed, and the file generated is properly processed, so it seems the issue is elsewhere.
What did you expect to happen:
The sbom generated by trivy should be added to the attestations.
Anything else you would like to add:
I have tried the same process with
syft
and it works as expectedEnvironment: