From b463c274d37c839151955b217b5c6eddf8027074 Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Wed, 3 Apr 2024 13:18:49 +0700 Subject: [PATCH] add pin entry loopback --- .github/workflows/build.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4459db7..53b71ee 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -41,11 +41,18 @@ jobs: - name: Import GPG Key run: | echo "${{ secrets.HQ_ROTKO_PGP }}" | gpg --batch --import + env: + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: Configure GPG + run: | + echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf + gpg-connect-agent reloadagent /bye - name: Sign binary and hash run: | - gpg --batch --yes --detach-sign --armor --default-key hq@rotko.net --output dist/genpeerid.sig dist/genpeerid - gpg --batch --yes --detach-sign --armor --default-key hq@rotko.net --output dist/genpeerid.sha512.sig dist/genpeerid.sha512 + gpg --batch --yes --pinentry-mode loopback --passphrase "${{ secrets.GPG_PASSPHRASE }}" --detach-sign --armor --default-key hq@rotko.net --output dist/genpeerid.sig dist/genpeerid + gpg --batch --yes --pinentry-mode loopback --passphrase "${{ secrets.GPG_PASSPHRASE }}" --detach-sign --armor --default-key hq@rotko.net --output dist/genpeerid.sha512.sig dist/genpeerid.sha512 - name: Upload Artifacts uses: actions/upload-artifact@v2