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

Fix error deleting keys with short key id #129

Conversation

josecelano
Copy link
Contributor

@josecelano josecelano commented Mar 3, 2022

Relates to: #124 (comment)

Error:

gpg: can't do this in batch mode

The GPG command:

gpg --batch --yes --delete-secret-keys FINGERPRINT

requires to use a fingerprint if you use the --batch option.

We were using the short ID of the primary key.

Error:

```
gpg: can't do this in batch mode
```

The GPG command:

```
gpg --batch --yes --delete-secret-keys FINGERPRINT
```

requires to use a fingerprint if you use the `--batch` option.

We were using the short ID of the primary key.
@codecov
Copy link

codecov bot commented Mar 3, 2022

Codecov Report

Merging #129 (29fd599) into master (87adbd8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #129   +/-   ##
=======================================
  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 87adbd8...29fd599. Read the comment docs.

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 11e26b9 into crazy-max:master Mar 3, 2022
@josecelano josecelano deleted the issue-124-use-fingerprint-to-remove-key branch March 3, 2022 13:56
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.

None yet

2 participants