mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-26 10:13:44 +01:00
Add info on bypassing SLSA to the error message
This commit is contained in:
parent
1adec3e6a1
commit
de1a6f3da8
@ -654,7 +654,7 @@ func Update() error {
|
|||||||
err = verifyBinary("/tmp/hishtory-client", "/tmp/hishtory-client.intoto.jsonl", downloadData.Version)
|
err = verifyBinary("/tmp/hishtory-client", "/tmp/hishtory-client.intoto.jsonl", downloadData.Version)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to verify SLSA provenance of the updated binary, aborting update: %v", err)
|
return fmt.Errorf("failed to verify SLSA provenance of the updated binary, aborting update (to bypass, set `export HISHTORY_DISABLE_SLSA_ATTESTATION=true`): %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unlink the existing binary so we can overwrite it even though it is still running
|
// Unlink the existing binary so we can overwrite it even though it is still running
|
||||||
|
Loading…
Reference in New Issue
Block a user