Browse Source

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.
PatTheMav 2 years ago
parent
commit
1e74256b7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/actions/setup-macos-codesigning/action.yaml

+ 1 - 1
.github/actions/setup-macos-codesigning/action.yaml

@@ -68,7 +68,7 @@ runs:
 
 
           print -n "${MACOS_SIGNING_CERT}" | base64 --decode --output=${certificate_path}
           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'
           print '::group::Keychain setup'
           security create-keychain -p "${MACOS_KEYCHAIN_PASSWORD}" ${keychain_path}
           security create-keychain -p "${MACOS_KEYCHAIN_PASSWORD}" ${keychain_path}