Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up GPG in .github/workflows/release.yml #27

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Conversation

parekh-raj
Copy link
Contributor

@parekh-raj parekh-raj commented Feb 17, 2025

⨯ release failed after 1m57s
error=
│ sign: gpg failed: exit status 2: gpg: signing failed: Inappropriate ioctl for device
│ gpg: signing failed: Inappropriate ioctl for device

This issue commonly occurs when running GPG in a non-interactive or headless environment (like inside a CI/CD pipeline, Docker container).

As we are using GitHub Actions, modify our workflow .yml file
Add the following before any step that requires GPG signing.

- name: Set up GPG
  run: |
    export GPG_TTY=$(tty)
    eval $(gpg-agent --daemon)

@parekh-raj parekh-raj self-assigned this Feb 17, 2025
@ChinmayGitHub ChinmayGitHub merged commit 03b4052 into main Feb 17, 2025
2 checks passed
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