mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-17 05:26:47 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user