Skip to content

Commit

Permalink
CI: Fix random password generation for macOS codesigning
Browse files Browse the repository at this point in the history
`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 is essentially a cherry-pick of:
obsproject/obs-studio@1e74256
  • Loading branch information
paulpv authored and PatTheMav committed Dec 4, 2023
1 parent e385ac1 commit db606e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/setup-macos-codesigning/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,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}
Expand Down

0 comments on commit db606e8

Please sign in to comment.