google / oss-rebuild

Securing open-source package ecosystems by originating, validating, and augmenting build attestations.
Apache License 2.0
32 stars 4 forks source link

Json decode before encode in the CLI. #79

Closed wbxyz closed 2 months ago

wbxyz commented 2 months ago

When fetching the build or steps from our attestations the CLI was converting them back to base64 instead of adding intendation. I think this is because we were asking the json encoder to Encode() a bytes string that was already json, so it encoded those bytes into base64 and added quotes outside it.

wbxyz commented 2 months ago

I can add some tests in a followup PR, submitting for now to un-break CLI.