Prevent hang on macOS when trying to install test certificate.

This commit is contained in:
Nathan Moinvaziri 2023-01-15 10:40:20 -08:00
parent c93a6b3d1c
commit 6f2e6bd74b

View File

@ -235,7 +235,9 @@ jobs:
- name: Install test certificate (macOS)
if: runner.os == 'macOS'
run: sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain test/test.pem || true
run: |
sudo security authorizationdb write com.apple.trust-settings.admin allow
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain test/test.pem || true
- name: Install test certificate (Windows)
if: runner.os == 'Windows'