Add better logging to slsa validation in GH actions

This commit is contained in:
David Dworken 2025-02-02 21:16:40 -08:00
parent 4a0bb18bcc
commit 75ea3534dc
No known key found for this signature in database

View File

@ -7,6 +7,7 @@ import os
ALL_FILES = ['hishtory-linux-amd64', 'hishtory-linux-arm64', 'hishtory-darwin-amd64', 'hishtory-darwin-arm64']
def validate_slsa(hishtory_binary: str) -> None:
print(f"Validating SLSA attestations with {hishtory_binary=}")
assert os.path.exists(hishtory_binary)
assertPresentAndNotAscii(hishtory_binary)
subprocess.check_output(['chmod', "+x", hishtory_binary])