Skip to content

Fix prerelease release signing in GitHub Actions#3973

Draft
Copilot wants to merge 3 commits into
developfrom
copilot/fix-prerelease-job-failure
Draft

Fix prerelease release signing in GitHub Actions#3973
Copilot wants to merge 3 commits into
developfrom
copilot/fix-prerelease-job-failure

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The prerelease Actions job was failing during GoReleaser checksum signing because gpg was invoked in batch mode without access to the signing passphrase. This change wires the passphrase through the release workflows and updates the shared signing command to consume it non-interactively.

  • Root cause

    • The workflow imported and unlocked the GPG key up front, but the later GoReleaser signing step ran gpg without a passphrase source.
    • Result: checksum signing failed with gpg: Sorry, we are in batchmode - can't get input.
  • Workflow changes

    • Export GPG_PASS in all release-entry workflows that call task release:prod:
      • community beta
      • community release
      • pro self-hosted beta
      • pro self-hosted release
  • GoReleaser signing

    • Update .goreleaser.yml so checksum signing reads the passphrase from stdin via --passphrase-fd 0 instead of expecting interactive input.
    • This keeps the fix centralized in the shared release config used by the affected workflows.
  • Result

    • Prerelease publishing can complete checksum signing in CI without interactive GPG input.
signs:
  - cmd: sh
    args:
      - -c
      - |
        printf '%s' "$GPG_PASS" | \
        gpg -u "{{ .Env.GPG_KEY_ID }}" \
          --pinentry-mode loopback \
          --yes --batch \
          --passphrase-fd 0 \
          --output "${signature}" \
          --detach-sign "${artifact}"

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'prerelease' Fix prerelease release signing in GitHub Actions Jun 17, 2026
Copilot AI requested a review from fiftin June 17, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants