MCPcopy Create free account
hub / github.com/cli/cli / getOrgPublicKey

Function getOrgPublicKey

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

Source from the content-addressed store, hash-verified

41}
42
43func getOrgPublicKey(client *api.Client, host, orgName string, app shared.App) (*PubKey, error) {
44 u, err := safeurl.JoinPath("orgs", orgName, string(app), "secrets", "public-key")
45 if err != nil {
46 return nil, err
47 }
48 return getPubKey(client, host, u)
49}
50
51func getUserPublicKey(client *api.Client, host string) (*PubKey, error) {
52 u, err := safeurl.JoinPath("user", "codespaces", "secrets", "public-key")

Callers 1

setRunFunction · 0.85

Calls 2

JoinPathFunction · 0.92
getPubKeyFunction · 0.85

Tested by

no test coverage detected