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

Delete key using the primary key ID not the subkey ID #125

Merged

Conversation

josecelano
Copy link
Contributor

Issue: #124

As I've explained in that issue. The command to delete the key at the end of the workflow fails. It's failing because it's using the fingerprint of the subkey. I think you cannot delete only a subkey and you have to use either a name or the fingerprint of the primary key.

I've changed the code to store the KeyID in the state together with the fingerprint used, in order to use the primary key fingerprint.

I've not tested yet if that works.

@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #125 (6ebc729) into master (2724049) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #125   +/-   ##
=======================================
  Coverage   81.96%   81.96%           
=======================================
  Files           3        3           
  Lines         122      122           
  Branches       25       25           
=======================================
  Hits          100      100           
  Misses         11       11           
  Partials       11       11           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2724049...6ebc729. Read the comment docs.

@crazy-max
Copy link
Owner

Can you rebase?

Copy link
Owner

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

@crazy-max crazy-max merged commit baa427b into crazy-max:master Feb 28, 2022
@josecelano josecelano deleted the delete-key-using-key-id branch February 28, 2022 15:54
lopopolo added a commit to artichoke/nightly that referenced this pull request Jul 31, 2022
`artichoke/ghaction-import-gpg` is synced from upstream which includes
several new releases, including a breaking change to v5 which upgrades
the nodejs runtime version.

The tag in `artichoke/ghaction-import-gpg` is:

- https://github.com/artichoke/ghaction-import-gpg/tree/v5.1.0

Diff of the upgrade from v4.1.0 to v5.1.0 is:

- https://github.com/artichoke/ghaction-import-gpg/compare/v4.1.0..v5.1.0.

The diff is mostly tests and linting, with some changes to how key
fingerprints and subkeys are handled, most notably:

- crazy-max/ghaction-import-gpg#123
- crazy-max/ghaction-import-gpg#125
- crazy-max/ghaction-import-gpg#129

`artichoke/nightly` uses a signing subkey, so these fixes are good to
take.
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.

Delete key fails when you use set a subkey for the fingerprint input
2 participants