Skip to content

Fix prerelease GPG signing in release workflows#3974

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

Fix prerelease GPG signing in release workflows#3974
Copilot wants to merge 3 commits into
developfrom
copilot/fix-prerelease-job-failure-again

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The prerelease GitHub Actions job was failing during GoReleaser checksum signing because gpg was running in batch mode without access to the signing passphrase. This change wires the passphrase into the release path and updates signing to consume it non-interactively.

  • Root cause

    • task release:prod invoked GoReleaser without providing the GPG passphrase needed for checksum signing.
    • The existing release workflows validated key import/unlock separately, but the GoReleaser signing step still prompted internally and failed in batch mode.
  • Release signing

    • Updated .goreleaser.yml to pipe GPG_PASS into gpg and use --passphrase-fd 0.
    • Keeps signing non-interactive while avoiding passphrase exposure via process arguments.
  • Workflow wiring

    • Exported GPG_PASS alongside GPG_KEY_ID in all workflows that call task release:prod:
      • pro_selfhosted_beta.yml
      • community_beta.yml
      • pro_selfhosted_release.yml
      • community_release.yml
  • Behavioral impact

    • Prerelease and release jobs continue to use the existing GPG key flow.
    • The signing step now has the credentials it needs when GoReleaser creates checksum signatures.
signs:
  - cmd: sh
    args:
      - -c
      - |
        printf '%s' "$GPG_PASS" | gpg \
          -u "{{ .Env.GPG_KEY_ID }}" \
          --pinentry-mode loopback \
          --passphrase-fd 0 \
          --yes \
          --batch \
          --output "${signature}" \
          --detach-sign "${artifact}"

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'prerelease' Fix prerelease GPG signing in release workflows Jun 17, 2026
Copilot AI requested a review from fiftin June 17, 2026 15:15
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