-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Cannot use gpg --import private_key.gpg
directly in GitHub Actions as directed by the doc
#675
Labels
Comments
@FanchenBao yes, sure! Please send a PR. |
@sobolevn Sure thing. |
See also #699 @FanchenBao it would be great if you submitted a PR for this! |
@joshrabinowitz PR just submitted for this issue. I apologize for putting this on the back burner for such a loooong time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are the steps to reproduce this issue?
GPG_PRIVATE_KEY
What happens?
It seems like
gpg --import
requires command line interaction, which GitHub Actions cannot provide. Hence, theInappropriate ioctl for device
error is thrown.What were you expecting to happen?
gpg --import private_key.gpg
can be executed on GitHub Actions without problem.Any logs, error output, etc?
Any other comments?
This problem can be resolved by explicitly telling
gpg
not to allow command line interaction, i.e.If we replace
gpg --import private_key.gpg
with the line above, no error is thrown. Therefore, I hope the documentation can be updated to reflect this issue.What versions of software are you using?
Operating system: (
uname -a
)The version reported is the one on the virtual machine of GitHub Actions.
Linux fv-az193-897 5.4.0-1047-azure #49-Ubuntu SMP Thu Apr 22 14:30:37 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
git-secret
path: (which git-secret
)/usr/bin/git-secret
git-secret
version: (git secret --version
)0.2.2
git
version: (git --version
)git version 2.31.1
Shell type and version: (
$SHELL --version
)GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
gpg
version: (gpg --version
)gpg (GnuPG) 2.2.19
The text was updated successfully, but these errors were encountered: