MCPcopy Index your code
hub / github.com/cli/cli / getUserPublicKey

Function getUserPublicKey

pkg/cmd/secret/set/http.go:46–48  ·  view source on GitHub ↗
(client *api.Client, host string)

Source from the content-addressed store, hash-verified

44}
45
46func getUserPublicKey(client *api.Client, host string) (*PubKey, error) {
47 return getPubKey(client, host, "user/codespaces/secrets/public-key")
48}
49
50func getRepoPubKey(client *api.Client, repo ghrepo.Interface, app shared.App) (*PubKey, error) {
51 return getPubKey(client, repo.RepoHost(), fmt.Sprintf("repos/%s/%s/secrets/public-key",

Callers 1

setRunFunction · 0.85

Calls 1

getPubKeyFunction · 0.85

Tested by

no test coverage detected