fix: stabilize workflow manifest canonicalization
This commit is contained in:
@@ -15,7 +15,7 @@ class ManifestDriftError(RuntimeError):
|
||||
|
||||
def canonical_manifest_json(manifest: ContractManifest) -> str:
|
||||
try:
|
||||
return json.dumps(manifest, ensure_ascii=False, indent=2) + "\n"
|
||||
return json.dumps(manifest, ensure_ascii=False, indent=2, sort_keys=True) + "\n"
|
||||
except (TypeError, ValueError) as error:
|
||||
raise ValueError(f"manifest is not canonically serializable: {error}") from error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user