mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 16:24:00 +01:00
Capture stdout for slsa validation
This commit is contained in:
parent
1264388ea9
commit
1cfaa13b74
@ -22,14 +22,14 @@ def validate_slsa(hishtory_binary: str) -> None:
|
||||
slsa_attestation_file,
|
||||
"--is_macos=True",
|
||||
f"--macos_unsigned_binary={unsigned_filename}"
|
||||
]).decode('utf-8')
|
||||
], stderr=subprocess.STDOUT).decode('utf-8')
|
||||
else:
|
||||
out = subprocess.check_output([
|
||||
hishtory_binary,
|
||||
"validate-binary",
|
||||
filename,
|
||||
slsa_attestation_file
|
||||
]).decode('utf-8')
|
||||
], stderr=subprocess.STDOUT).decode('utf-8')
|
||||
assert "Verified signature against tlog entry" in out, out
|
||||
assert "Verified build using builder" in out, out
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user