gpg-key command
Description
Adds gpg-key (follows same flow as ssh-key).
This requires an update to go-gitlab (at least v0.53.0).
Related Issues
Resolves #1052 1052
How has this been tested?
Add (already added)
GITLAB_HOST=https://xxxxxxx bin/glab gpg-key add myfile.pub
x failed to add new gpg public key error=POST https://xxxxxxxx/api/v4/user/gpg_keys: 400 {message: {fingerprint: [has already been taken]}, {primary_keyid: [has already been taken]}}
List
GITLAB_HOST=https://xxxxxxxxxx bin/glab gpg-key list
about 4 months ago
-----BEGIN PGP PUBLIC KEY BLOCK-----
xxxxxxxxxxxxxxxxxxxxxx
-----END PGP PUBLIC KEY BLOCK-----
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms)