Skip to content

Commit

Permalink
fix: gpg key usage in deb repo workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
3benbox committed Jul 16, 2024
1 parent c9fab7a commit cb25d9e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/update-deb-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.REPO_GPG_PASSPHRASE }}
run: |
echo "$GPG_PRIVATE_KEY" | gpg --batch --import --pinentry-mode loopback
gpg --list-secret-keys --keyid-format LONG
- name: Configure GPG to use passphrase
env:
Expand All @@ -46,6 +47,17 @@ jobs:
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf
echo "RELOADAGENT" | gpg-connect-agent
# Get the key ID of the imported key
KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep sec | awk '{print $2}' | awk -F'/' '{print $2}')
echo "KEY_ID=$KEY_ID" >> $GITHUB_ENV
- name: Debug GPG
run: |
gpg --version
echo "GNUPGHOME=$GNUPGHOME"
ls -la ~/.gnupg
gpg-agent --version
- name: Update Deb Repo
working-directory: debian-repo
Expand Down

0 comments on commit cb25d9e

Please sign in to comment.