Skip to content

Commit 1bc5f98

Browse files
committed
fix: use zcat to decomporess possibly compressed keys
1 parent 0e6696d commit 1bc5f98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async function setupKeys() {
8282
core.debug("Examining verification keys");
8383
await (0, exec_1.exec)(`file "${path}"`);
8484
core.debug("Importing verification keys");
85-
await (0, exec_1.exec)(`zcat ${path} | gpg --import -`);
85+
await (0, exec_1.exec)('bash', ['-c', `zcat "${path}" | gpg --import`]);
8686
core.debug("Refreshing keys");
8787
await refreshKeys();
8888
}

src/gpg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function setupKeys() {
1212
await exec(`file "${path}"`);
1313

1414
core.debug("Importing verification keys");
15-
await exec(`zcat ${path} | gpg --import -`);
15+
await exec('bash', ['-c', `zcat "${path}" | gpg --import`]);
1616

1717
core.debug("Refreshing keys");
1818
await refreshKeys();

0 commit comments

Comments
 (0)