MCPcopy Index your code
hub / github.com/google/go-github / GetUserPublicKey

Method GetUserPublicKey

github/codespaces_secrets.go:87–89  ·  view source on GitHub ↗

GetUserPublicKey gets the users public key for encrypting codespace secrets Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. You must authenticate using an access token with the codespace or codespace:secrets scope to use

(ctx context.Context)

Source from the content-addressed store, hash-verified

85//
86//meta:operation GET /user/codespaces/secrets/public-key
87func (s *CodespacesService) GetUserPublicKey(ctx context.Context) (*PublicKey, *Response, error) {
88 return s.getPublicKey(ctx, "user/codespaces/secrets/public-key")
89}
90
91// GetOrgPublicKey gets the org public key for encrypting codespace secrets
92//

Callers 2

addUserSecretFunction · 0.80

Calls 1

getPublicKeyMethod · 0.95

Tested by 1