Added checksums for content inside archives for SBOM.jsons #679
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi All,
As far as I am aware, checksums are provided for archive files but not there contents.
I have a use case where I want the checksum of the binary inside the archive before I download them.
I have added some syft envvars to the
cmd/goreleaser/internal/configure.go
config.SBOM struct that will provide checksums for archive contents.Files section before the change reference file
Files section after the change
Checking the checksum:
![image](https://private-user-images.githubusercontent.com/58670593/370989527-38ffccaa-e0e4-48e0-9c7e-30a8f116d872.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDM1OTIsIm5iZiI6MTczOTM0MzI5MiwicGF0aCI6Ii81ODY3MDU5My8zNzA5ODk1MjctMzhmZmNjYWEtZTBlNC00OGUwLTljN2UtMzBhOGYxMTZkODcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA2NTQ1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZmYzNiYTMzZGNmNDQ4YWZkNDE2NTdkMjQ5YzNmYmVhNjY1YmI1YTg0ZmQwMTJhYjhhNzY1ZDg3M2NlZDU3OTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.b7BmXLR51Qx-YLW1EmF7SbeQ9x2QGzBS_65aLU4GpFg)
I hope this can be merged as it'll save me a few clicks per release upgrade.
Thanks!
Aidan