From 4c9226d4eb0b8b2aeb9d0201bb55a58fad5a4376 Mon Sep 17 00:00:00 2001 From: Todd Wolfe Date: Thu, 8 Oct 2026 22:09:37 -0400 Subject: [PATCH] Require explicit build result in report policy demo --- index.html | 9 +++++---- value-1.0.0.js | 4 ++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index e0d0bb8..90f6229 100644 --- a/index.html +++ b/index.html @@ -12,13 +12,13 @@ - + - - - + + +
@@ -369,3 +369,4 @@

Help us make the next release useful.

+ diff --git a/value-1.0.0.js b/value-1.0.0.js index 297e85e..0f2c033 100644 --- a/value-1.0.0.js +++ b/value-1.0.0.js @@ -378,6 +378,10 @@ panel( control("receipt-output", "Output", "readable", ["readable", "JSON"]), ], () => { + if (!/^\d+$/.test(val("receipt-build").trim())) + throw new TypeError( + "Provide an explicit nonnegative integer build exit code.", + ); const meta = { commit: val("receipt-source-commit"), capturedAt: val("receipt-time"),