Skip to content

fix(DAK-5433): use ghaction-import-gpg for reliable GPG import in CI#83

Merged
ferhimedamine merged 1 commit into
mainfrom
fix/dak-5433-gpg-import
May 21, 2026
Merged

fix(DAK-5433): use ghaction-import-gpg for reliable GPG import in CI#83
ferhimedamine merged 1 commit into
mainfrom
fix/dak-5433-gpg-import

Conversation

@ferhimedamine
Copy link
Copy Markdown
Contributor

Problem

publish-linux-packages.yml GPG import step fails with exit code 2 in GitHub Actions.
Raw echo "$KEY" | gpg --import --batch --yes fails because GitHub Actions runners
have no tty and the GPG agent has pinentry issues.

Fix

Replace both GPG import steps (APT publish + RPM publish) with crazy-max/ghaction-import-gpg@v6
which correctly configures the GPG agent with loopback pinentry and handles all edge cases.
Also switch --default-key to -u flag for signing steps.

Evidence

  • Run 26228552961 failed: Import GPG signing key exit code 2 (old approach)
  • Run 26228773703 failed: same root cause (new key, same raw import)

🤖 Generated with Claude Code

GPG import with raw `echo | gpg --import --batch --yes` fails in GitHub
Actions (exit code 2) due to missing tty/pinentry agent. Switch to
crazy-max/ghaction-import-gpg@v6 which handles gpg-agent setup correctly.
Also switch --default-key to -u flag for signing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ferhimedamine ferhimedamine added the auto-merge Auto-merge when CI passes label May 21, 2026
@ferhimedamine ferhimedamine merged commit 6266336 into main May 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Auto-merge when CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant