Skip to content

Commit

Permalink
add pin entry loopback
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Apr 3, 2024
1 parent 2434379 commit b463c27
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b463c27

Please sign in to comment.