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

Function getOrgPublicKey

pkg/cmd/secret/set/http.go:42–44  ·  view source on GitHub ↗
(client *api.Client, host, orgName string, app shared.App)

Source from the content-addressed store, hash-verified

40}
41
42func getOrgPublicKey(client *api.Client, host, orgName string, app shared.App) (*PubKey, error) {
43 return getPubKey(client, host, fmt.Sprintf("orgs/%s/%s/secrets/public-key", orgName, app))
44}
45
46func getUserPublicKey(client *api.Client, host string) (*PubKey, error) {
47 return getPubKey(client, host, "user/codespaces/secrets/public-key")

Callers 1

setRunFunction · 0.85

Calls 1

getPubKeyFunction · 0.85

Tested by

no test coverage detected