Skip to content

Commit dbcf093

Browse files
committed
OAS-4755 | Using base64 encoded key
1 parent 131b900 commit dbcf093

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sign.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ set -e
33

44
gpg-agent --daemon --default-cache-ttl 7200
55
# Multiline key in an envvar gets mangled.
6-
FIXED_KEY=$(echo "$GPG_PRIVATE_KEY" | cat -e | sed 's/\$/\\n/g')
7-
echo -e $FIXED_KEY | gpg --import --batch --no-tty
6+
echo "$GPG_PRIVATE_KEY_BASE64" | base64 -d | gpg --import --batch --no-tty
87
echo "hello world" > temp.txt
98
gpg --detach-sig --yes -v --output=/dev/null --pinentry-mode loopback --passphrase "${PASSPHRASE}" temp.txt
109
cd assets ; gpg --detach-sign ${PROJECT}-${VERSION}_SHA256SUMS

0 commit comments

Comments
 (0)