Skip to content

Commit 8e11453

Browse files
committed
Fix GPG import command - use correct passphrase flag
gpg --import doesn't accept --passphrase directly. Use --pinentry-mode loopback with --passphrase for import.
1 parent b292223 commit 8e11453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ jobs:
232232
# Start gpg-agent with loopback pinentry
233233
gpg-agent --daemon --allow-loopback-pinentry
234234
235-
# Import the subkey
236-
echo "$GPG_PRIVATE_KEY" | gpg --batch --import --passphrase "$GPG_PASSPHRASE"
235+
# Import the subkey (passphrase will be provided via pinentry loopback)
236+
echo "$GPG_PRIVATE_KEY" | gpg --batch --yes --pinentry-mode loopback --passphrase "$GPG_PASSPHRASE" --import
237237
238238
# Trust the key (required for signing)
239239
# Use ultimate trust (6) for the subkey

0 commit comments

Comments
 (0)