Skip to content

Commit 75bd37b

Browse files
committed
import key with passphrase
1 parent f28a60c commit 75bd37b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release-rpm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ set -euo pipefail
99
TEMP_KEY_FILE=$(mktemp)
1010
echo "$GPG_PRIVATE_KEY" > "$TEMP_KEY_FILE"
1111

12-
# Import key into GPG keyring
13-
gpg --batch --import "$TEMP_KEY_FILE"
12+
# Import key into GPG keyring with passphrase
13+
echo "$GPG_PASSPHRASE" | gpg --batch --yes --passphrase-fd 0 --import "$TEMP_KEY_FILE"
1414

1515
# Set environment variable for GoReleaser to use the key file path
1616
export GPG_PRIVATE_KEY="$TEMP_KEY_FILE"

0 commit comments

Comments
 (0)