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

ci: Fix broken key importing #474

Merged
merged 1 commit into from
Apr 29, 2021
Merged

ci: Fix broken key importing #474

merged 1 commit into from
Apr 29, 2021

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Apr 29, 2021

gpg apparently uses tty for printing warnings (in this case likely about trust level for the new key)

Because there's no valid tty in GitHub Actions (or any other CI) we reflect that by passing extra flags to gpg.

This should address the following error during release:

gpg: key 34365D9472D7468F/B0B441097685B676: error sending to agent: Inappropriate ioctl for device
gpg: error reading '[stdin]': Inappropriate ioctl for device
gpg: import from '[stdin]' failed: Inappropriate ioctl for device

If this doesn't work then we can consider swapping that echo | gpg command for https://github.com/hashicorp/ghaction-import-gpg which is used by most Terraform providers AFAIK.

gpg apparently uses tty for printing warnings
(in this case about trust level for the new key)

Because there's no valid tty in GitHub Actions (or any other CI)
we reflect that by passing extra flags to gpg.
@radeksimko radeksimko added the ci Continuous integration/delivery related label Apr 29, 2021
@radeksimko
Copy link
Member Author

I'm going to merge this now (without review) to try unblocking a release which is due, but post-merge reviews are welcomed.

@radeksimko radeksimko merged commit 987604d into main Apr 29, 2021
@radeksimko radeksimko deleted the ci-fix-key-import branch April 29, 2021 08:37
@ghost
Copy link

ghost commented May 29, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators May 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ci Continuous integration/delivery related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant