fix(ci): treat require-digests=false as off in verify-artifacts

The download action always sets OPENCODE_REQUIRE_DIGESTS (false by default),
so testing for a non-empty value required digests for release artifacts that
legitimately have none and broke sign-macos, sign-windows and
publish-attestations. Compare the value to true instead.
This commit is contained in:
Dax Raad
2026-11-11 06:42:50 -05:00
Unverified
parent d4ea024c4c
commit 611cee9d4b
+1 -1
View File
@@ -27,7 +27,7 @@ for dir in "$root"/*/; do
for pair in ${OPENCODE_DIGESTS:-}; do
if [ "${pair%%=*}" = "$name" ]; then digest=${pair#*=}; fi
done
if [ -n "${OPENCODE_REQUIRE_DIGESTS:-}" ]; then
if [ "${OPENCODE_REQUIRE_DIGESTS:-false}" = true ]; then
[[ "$digest" =~ ^[0-9a-f]{64}$ ]] || die "Missing digest for $name"
else
case "$name" in sign-*) [[ "$digest" =~ ^[0-9a-f]{64}$ ]] || die "Missing digest for $name" ;; esac