mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
fix: GPG signing on CI — set trust and explicit key selection (#2571)
Co-authored-by: Nazim <nazim@openclaw.ai>
This commit is contained in:
parent
40fd9b24ac
commit
88e0f58c41
1 changed files with 11 additions and 2 deletions
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -536,9 +536,18 @@ jobs:
|
|||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||
run: |
|
||||
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
|
||||
# Set ultimate trust so GPG will use the key on a fresh runner
|
||||
FPR=$(gpg --list-secret-keys --with-colons 2>/dev/null | grep '^fpr' | head -1 | cut -d: -f10)
|
||||
echo "${FPR}:6:" | gpg --import-ownertrust
|
||||
KEY_ID=$(gpg --list-secret-keys --keyid-format long --with-colons 2>/dev/null | grep '^sec' | head -1 | cut -d: -f5)
|
||||
echo "Signing with key: $KEY_ID"
|
||||
cd release-files
|
||||
echo "$GPG_PASSPHRASE" | gpg --batch --yes --passphrase-fd 0 \
|
||||
--pinentry-mode loopback --detach-sign --armor SHA256SUMS
|
||||
if [ -n "$GPG_PASSPHRASE" ]; then
|
||||
echo "$GPG_PASSPHRASE" | gpg --batch --yes --passphrase-fd 0 \
|
||||
--pinentry-mode loopback --default-key "$KEY_ID" --detach-sign --armor SHA256SUMS
|
||||
else
|
||||
gpg --batch --yes --pinentry-mode loopback --default-key "$KEY_ID" --detach-sign --armor SHA256SUMS
|
||||
fi
|
||||
cd ..
|
||||
|
||||
- name: Generate release body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue