Skip to content

Commit 52137e0

Browse files
committed
More hacks to try to strip the password
1 parent 8b60d40 commit 52137e0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,9 @@ jobs:
108108
echo "$PGP_SECRET" | base64 -d > /tmp/signing-key.gpg
109109
echo "$PGP_PASSPHRASE" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg
110110
111+
- name: Strip passphrase from signing key
112+
env:
113+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
114+
run: echo "passwd\n$PGP_PASSPHRASE\n\n\nsave\nquit\n" | gpg --edit-key 5EBC14B0F6C55083
115+
111116
- run: sbt ++${{ matrix.scala }} release

build.sbt

+5
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ ThisBuild / githubWorkflowPublishPreamble := Seq(
8585
"echo \"$PGP_SECRET\" | base64 -d > /tmp/signing-key.gpg",
8686
"echo \"$PGP_PASSPHRASE\" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg"),
8787
name = Some("Import signing key"),
88+
env = Map("PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}")),
89+
90+
WorkflowStep.Run(
91+
List("echo \"passwd\\n$PGP_PASSPHRASE\\n\\n\\nsave\\nquit\\n\" | gpg --edit-key 5EBC14B0F6C55083"),
92+
name = Some("Strip passphrase from signing key"),
8893
env = Map("PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}")))
8994

9095
// environments

0 commit comments

Comments
 (0)