Skip to content

Commit

Permalink
OAS-4755 | Using base64 encoded key
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoutp committed Jun 21, 2022
1 parent 131b900 commit dbcf093
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ set -e

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

0 comments on commit dbcf093

Please sign in to comment.