File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,19 @@ jobs:
337337 # GoReleaser uses --passphrase flag directly, which works differently
338338 echo "✓ GPG key imported successfully"
339339
340+ - name : Verify GPG setup before GoReleaser
341+ env :
342+ GPG_FINGERPRINT : ${{ secrets.GPG_FINGERPRINT }}
343+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
344+ run : |
345+ echo "Verifying GPG environment variables..."
346+ echo "GPG_FINGERPRINT length: ${#GPG_FINGERPRINT}"
347+ echo "GPG_PASSPHRASE length: ${#GPG_PASSPHRASE}"
348+ gpg --list-secret-keys --keyid-format LONG
349+ # Test signing with passphrase
350+ echo "test" | gpg --batch --yes --no-tty --pinentry-mode loopback --passphrase "$GPG_PASSPHRASE" --local-user "$GPG_FINGERPRINT" --sign -o /tmp/test.sig - 2>&1 && echo "✓ Test signing successful" || echo "⚠ Test signing failed"
351+ rm -f /tmp/test.sig
352+
340353 - name : Run GoReleaser
341354 uses : goreleaser/goreleaser-action@v6
342355 with :
@@ -349,6 +362,11 @@ jobs:
349362 GPG_FINGERPRINT : ${{ secrets.GPG_FINGERPRINT }}
350363 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
351364 GPG_TTY : $(tty)
365+ # Ensure GPG environment is available
366+ run : |
367+ echo "GPG_FINGERPRINT is set: $([ -n "$GPG_FINGERPRINT" ] && echo 'yes' || echo 'no')"
368+ echo "GPG_PASSPHRASE is set: $([ -n "$GPG_PASSPHRASE" ] && echo 'yes' || echo 'no')"
369+ gpg --list-secret-keys --keyid-format LONG
352370
353371 # terraform-provider-release:
354372 # needs: [release]
You can’t perform that action at this time.
0 commit comments