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

Function getEnvPubKey

pkg/cmd/secret/set/http.go:55–58  ·  view source on GitHub ↗
(client *api.Client, repo ghrepo.Interface, envName string)

Source from the content-addressed store, hash-verified

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",
57 ghrepo.FullName(repo), envName))
58}
59
60func putSecret(client *api.Client, host, path string, payload interface{}) error {
61 payloadBytes, err := json.Marshal(payload)

Callers 1

setRunFunction · 0.85

Calls 3

FullNameFunction · 0.92
getPubKeyFunction · 0.85
RepoHostMethod · 0.65

Tested by

no test coverage detected