Skip to content

Commit fb2ff19

Browse files
Read the signing certificate from relative paths in macos-verify.sh
The certificate was extracted after a cd into a temp folder, so relative paths (as the release workflow passes them) were not found and the check exited without a message. Extract with a path prefix instead.
1 parent 637c5e4 commit fb2ff19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/macos-verify.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ signer() {
3939
certificate() {
4040
local dir="$WORK/certs-$RANDOM"
4141
mkdir -p "$dir"
42-
(cd "$dir" && codesign -d --extract-certificates "$1" 2>/dev/null)
43-
local leaf="$dir/codesign0"
42+
codesign -d --extract-certificates="$dir/cert" "$1" 2>/dev/null || true
43+
local leaf="$dir/cert0"
4444
[ -f "$leaf" ] || fail "could not read the signing certificate of $1"
4545
local until
4646
until="$(openssl x509 -inform DER -in "$leaf" -noout -enddate | cut -d= -f2)"

0 commit comments

Comments
 (0)