aboutsummaryrefslogtreecommitdiff
path: root/.drone/authenv.sh
diff options
context:
space:
mode:
Diffstat (limited to '.drone/authenv.sh')
-rwxr-xr-x.drone/authenv.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/.drone/authenv.sh b/.drone/authenv.sh
index 34f648e..5cb1c73 100755
--- a/.drone/authenv.sh
+++ b/.drone/authenv.sh
@@ -10,9 +10,13 @@ set -e
echo "Getting public key"
gpg2 --batch --keyserver hkp://pool.sks-keyservers.net --recv-keys 4E7DA7B5A0F86992D6EB3F514601878662E33372
-# import secret signing sub key, the key is expected to be passwordless
+# import secret signing sub key
+#
+# although the key is encrypted as a drone secret, it must also be encrypted
+# with a passphrase since gpg2 does not allow exporting keys with empty passwords
+# https://bugs.gnupg.org/gnupg/issue2070
echo "Importing SSB"
-echo "$GPG_SSB" | gpg2 --batch --import
+echo "$GPG_SSB" | gpg2 --batch --passphrase=0000000000 --import
# prepare gpg settings for sbt
echo "Setting up sbt-pgp"