Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

Commit 2f40ca2

Browse files
authored
Merge pull request #120 from learningequality/fix/extract-gpg-key-id
fix: extract GPG key ID from imported key
2 parents c2454ce + 90a3fd9 commit 2f40ca2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build_debian.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,14 @@ jobs:
7575
echo -n "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode | gpg --import --no-tty --batch --yes
7676
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
7777
gpgconf --kill gpg-agent
78+
# Extract key ID from imported key so we don't need a separate secret
79+
GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format long --with-colons | grep ^sec | head -1 | cut -d: -f5)
80+
echo "GPG_KEY_ID=$GPG_KEY_ID" >> "$GITHUB_ENV"
81+
echo "Imported GPG key: $GPG_KEY_ID"
7882
- name: Sign and upload package
7983
if: steps.check_source.outputs.already_uploaded != 'true'
8084
env:
8185
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
82-
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
8386
run: make sign-and-upload
8487
- name: Cleanup credentials
8588
if: always()

0 commit comments

Comments
 (0)