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

Function getRepoPubKey

pkg/cmd/secret/set/http.go:50–53  ·  view source on GitHub ↗
(client *api.Client, repo ghrepo.Interface, app shared.App)

Source from the content-addressed store, hash-verified

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",
52 ghrepo.FullName(repo), app))
53}
54
55func getEnvPubKey(client *api.Client, repo ghrepo.Interface, envName string) (*PubKey, error) {
56 return getPubKey(client, repo.RepoHost(), fmt.Sprintf("repos/%s/environments/%s/secrets/public-key",

Callers 1

setRunFunction · 0.85

Calls 3

FullNameFunction · 0.92
getPubKeyFunction · 0.85
RepoHostMethod · 0.65

Tested by

no test coverage detected