Explorar o código

package: include full commit in bound receipts

Codex Resource Selftest hai 4 meses
pai
achega
22075fac07
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      tools/codex_harness.py

+ 1 - 0
tools/codex_harness.py

@@ -73,6 +73,7 @@ def _copy_bound_receipt(
         if observed not in {None, "", expected}:
         if observed not in {None, "", expected}:
             raise ValueError(f"receipt binding mismatch for {field}: {source}")
             raise ValueError(f"receipt binding mismatch for {field}: {source}")
         value[field] = expected
         value[field] = expected
+    value["commit_full"] = commit
     value["source_receipt_sha256"] = sha256_file(source)
     value["source_receipt_sha256"] = sha256_file(source)
     _write_json(destination, value)
     _write_json(destination, value)
     return value
     return value