CI: Fix random password generation for macOS codesigning

`sha1sum` is part of Homebrew's coreutils, but macOS ships with
`shasum` by default, which supports many variants and defaults to
SHA-1 by default.
This commit is contained in:
PatTheMav
2023-07-21 14:16:59 -04:00
committed by Ryan Foster
parent b7fddceb67
commit 1e74256b7e
@@ -68,7 +68,7 @@ runs:
print -n "${MACOS_SIGNING_CERT}" | base64 --decode --output=${certificate_path}
: "${MACOS_KEYCHAIN_PASSWORD:="$(print ${RANDOM} | sha1sum | head -c 32)"}"
: "${MACOS_KEYCHAIN_PASSWORD:="$(print ${RANDOM} | shasum | head -c 32)"}"
print '::group::Keychain setup'
security create-keychain -p "${MACOS_KEYCHAIN_PASSWORD}" ${keychain_path}