Skip to content

Commit a2b73c2

Browse files
committed
Add fix for environments without CryptoKey
1 parent 2855a13 commit a2b73c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

encrypt-actions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async function decrypt(action, key) {
112112

113113
export function encryptActions(client, secret, opts = {}) {
114114
let key
115-
if (secret instanceof CryptoKey) {
115+
if (typeof CryptoKey !== 'undefined' && secret instanceof CryptoKey) {
116116
key = secret
117117
}
118118

0 commit comments

Comments
 (0)