Skip to content

Commit

Permalink
update logic for gpg import
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh Kennadi committed Sep 9, 2024
1 parent 28b4957 commit e4a43ba
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,10 @@ jobs:

- name: Import GPG Key
run: |
sudo apt-get update
sudo apt-get install -y gnupg
# Create .gnupg directory
mkdir -p ~/.gnupg
chmod 700 ~/.gnupg
# Import the GPG private key
echo "${{ secrets.GPG_PRIVATE_KEY_TEST }}" | gpg --batch --import
# Configure GPG
echo "use-agent" >> ~/.gnupg/gpg.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg-agent.conf
# Restart GPG agent
gpgconf --kill gpg-agent
gpgconf --launch gpg-agent
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --import
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY_TEST }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Build and test post generation
# run: |
Expand Down

0 comments on commit e4a43ba

Please sign in to comment.