Git Product home page Git Product logo

Comments (11)

jasonkarns avatar jasonkarns commented on June 4, 2024 3

I've confirmed that using a Sign+Encrypt subkey works as expected, so that's at least a workaround. (It works in my particular case... however, there are other scenarios where one can not add an additional encryption subkey because it's generally expected that there be only a single encrypting subkey.)

Regardless, there is a slight bug (minor annoyance, really) when using only a subkey: this action reports a warning during workflow cleanup that the secret key is missing. This annotation is displayed on the workflow summary, as well as in detail within the workflow log output.

gpg: key "EC4A05892FB2603243F5031D249FB5A789A6EF28" not found gpg: EC4A05892FB2603243F5031D249FB5A789A6EF28: delete key failed: Not found

My assumption is that this action is attempting to delete the secret key that was added. However, if the secret key contains only a subkey, then the deletion fails.

from ghaction-import-gpg.

alekseibevzenko avatar alekseibevzenko commented on June 4, 2024 3

@crazy-max Hi. I have tried to use crazy-max/ghaction-import-gpg@subkey and it works. Previous version v4 was failed with ##[error]Could not find valid encryption key packet in key

from ghaction-import-gpg.

retorquere avatar retorquere commented on June 4, 2024 1

I'm having the same problem, and for me it traces back to https://github.com/crazy-max/ghaction-import-gpg/blob/master/src/openpgp.ts#L33

A signing-only key will not have an encryption key, so it fails there it seems. If I remove that line, this removes the error for me. I don't know how much knock-on damage that does though.

from ghaction-import-gpg.

retorquere avatar retorquere commented on June 4, 2024 1

I'm currently using a fork that makes https://github.com/crazy-max/ghaction-import-gpg/blob/master/src/openpgp.ts#L33 optional.

from ghaction-import-gpg.

xtermi2 avatar xtermi2 commented on June 4, 2024 1

I had the same issue with a sign only key. I just added a enctyption subkey and this also works when importing both and not just the sign-only subkey

from ghaction-import-gpg.

crazy-max avatar crazy-max commented on June 4, 2024

Hi @jasonkarns, I will take a look this week on this issue. Thanks for your input and concise report. Btw maybe linked to #39 (comment)

from ghaction-import-gpg.

jasonkarns avatar jasonkarns commented on June 4, 2024

Agree, thread in #39 sounds similar. I also exported with gpg --armor --export-secret-subkeys SUBKEYID! as mentioned there.

Looks like openpgp.js supposedly supports this now? openpgpjs/openpgpjs#865 But this action is already using a version that includes that patch so 🤷 ...

from ghaction-import-gpg.

jasonkarns avatar jasonkarns commented on June 4, 2024

A signing-only key will not have an encryption key, so it fails there it seems.

So does that mean that a sub key will work fine so long as the sub key is signing+encryption?

While this bug/feature should still remain open, that would at least unblock me by allowing sub keys. (I haven't tried importing sub keys with additional capabilities yet).

from ghaction-import-gpg.

jason-swissre avatar jason-swissre commented on June 4, 2024

Hi, I see a several merges but the issue is still open. Is there still more to do here?

from ghaction-import-gpg.

TLATER avatar TLATER commented on June 4, 2024

@jason-swissre Look closely; they're all merged to other repositories ;)

GitHub will show when someone mentions an issue elsewhere, so those merges just show a lot of people are running into this.

from ghaction-import-gpg.

crazy-max avatar crazy-max commented on June 4, 2024

I started something in #112. Can someone try it with uses: crazy-max/ghaction-import-gpg@subkey and let me know if it looks good? Thanks.

from ghaction-import-gpg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.