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

Unable to import GPG private key #9

Closed
riprasad opened this issue May 5, 2020 · 8 comments
Closed

Unable to import GPG private key #9

riprasad opened this issue May 5, 2020 · 8 comments
Labels

Comments

@riprasad
Copy link

riprasad commented May 5, 2020

Behaviour

Steps to reproduce this issue

  1. Add PASSPHRASE and SIGNING_KEY as secret.
    Follow below steps to get your SIGNING_KEY value:-
    - Run "gpg --list-secret-keys" and copy the ID of the key you'd like to use
    - Export the key with "gpg -a --export-secret-keys KEY_ID"(replace KEY_ID with your copied ID)
  2. create the workflow import-gpg.yaml
  3. Push something to master branch to trigger the workflow

Expected behaviour

The workflow should run successfully and the gpg private key should have been imported

Actual behaviour

Workflow failed and gpg private key did not get imported (output)

Configuration

# paste your YAML workflow file here and remove sensitive data

name: import-gpg

on:
  push:
    branches: master

jobs:
  import-gpg:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v2
      -
        name: Import GPG key
        uses: crazy-max/ghaction-import-gpg@v1
        with:
          git_gpgsign: true
        env:
          SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
          PASSPHRASE: ${{ secrets.PASSPHRASE }}

Logs

Download the [log file of your build](https://github.com/riprasad/gitub-actions-demo/runs/646938049?check_suite_focus=true
logs_263.zip
) and attach it to this issue.

@crazy-max
Copy link
Owner

@riprasad Thanks for your report, I will try to reproduce your issue on another repo. Keep you in touch.

@riprasad
Copy link
Author

riprasad commented May 5, 2020

@crazy-max I also tried the same workflow in one of my another repo, but the issue remained the same.

@crazy-max
Copy link
Owner

@riprasad Yes I was able to reproduce. Looks like transpiled code with openpgp is kinda broken.

@riprasad
Copy link
Author

riprasad commented May 5, 2020

@crazy-max when can i expect the fix ?

@crazy-max
Copy link
Owner

@riprasad When I've got time. PR welcome.

@riprasad
Copy link
Author

riprasad commented May 5, 2020

@crazy-max would have love to contribute but I am a Java Guy. No clue on Javascript/node.js

@crazy-max
Copy link
Owner

@riprasad Should be fixed now.

@riprasad
Copy link
Author

riprasad commented May 6, 2020

@crazy-max Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants